1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 03:10:10 +03:00

Fix variables docs

This broke after removing `../../src/support/variables/colors.scss`. For now it's just commented out.
This commit is contained in:
simurai 2021-03-11 12:50:54 +09:00
parent ab7d4c7528
commit de5c865dd5

View File

@ -1,6 +1,9 @@
import titleCase from 'title-case'
import allModeColors from '@primer/primitives/dist/js/colors'
import colorVariablesSCSS from '!!raw-loader!../../src/support/variables/colors.scss'
// TODO: Remove? Not sure if still needed?
// The `../../src/support/variables/colors.scss` file got removed since all color variables are now in primer/primitives.
// import colorVariablesSCSS from '!!raw-loader!../../src/support/variables/colors.scss'
// XXX we don't necessarily define them in this order in primer-colors,
// so we define an array here just to be safe
@ -10,7 +13,8 @@ const colors = allModeColors.light.scale
const variables = {}
parseSCSSVariables(colorVariablesSCSS, variables)
// TODO: Remove? Not sure if still needed?
// parseSCSSVariables(colorVariablesSCSS, variables)
const colorModes = Object.keys(allModeColors).sort((a, b) => {
if (a.startsWith('light') && !b.startsWith('light')) return -1