-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from basher/remove-sass
Replace Sass with vanilla CSS
- Loading branch information
Showing
114 changed files
with
3,119 additions
and
4,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
{ | ||
"eslint.workingDirectories": [ "./ui" ], | ||
"css.validate": false, | ||
"scss.validate": false, | ||
"stylelint.enable": true, | ||
"stylelint.validate": [ | ||
"scss", | ||
"css", | ||
"postcss", | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
---------------------------------------------------------------------------- | ||
Color settings. | ||
1. Copy the CSS custom properties inside the ':root {}' ruleset, along with their JSDoc comments, into 'base/colors-to-json.scss'. | ||
2. Replace '--' with '$'. | ||
3. The 'sass-export' Node package then correctly exports all the colors as JSON for consumption by Storybook. | ||
TODO: | ||
- Write custom Node script to convert these values into JSON without the manual copy/paste step into a Sass file. | ||
---------------------------------------------------------------------------- | ||
*/ | ||
:root { | ||
/** | ||
* @sass-export-section="main theme colours" | ||
*/ | ||
--color-primary-100: hsl(var(--webui-color-brand) / 20%); | ||
--color-primary-500: hsl(var(--webui-color-brand)); | ||
|
||
/** | ||
* @sass-export-section="neutral colours" | ||
*/ | ||
--color-background: hsl(var(--webui-color-neutral-100)); | ||
--color-neutral-light: hsl(var(--webui-color-neutral-200)); | ||
--color-neutral-medium: hsl(var(--webui-color-neutral-500)); | ||
--color-text: hsl(var(--webui-color-neutral-700)); | ||
--color-neutral-dark: hsl(var(--webui-color-neutral-900)); | ||
|
||
/** | ||
* @sass-export-section="other accent colours" | ||
*/ | ||
--color-success-100: hsl(var(--webui-color-accent-positive) / 10%); | ||
--color-success-500: hsl(var(--webui-color-accent-positive)); | ||
--color-error-100: hsl(var(--webui-color-accent-negative) / 10%); | ||
--color-error-500: hsl(var(--webui-color-accent-negative)); | ||
--color-notify-100: hsl(var(--webui-color-accent-neutral) / 10%); | ||
--color-notify-500: hsl(var(--webui-color-accent-neutral)); | ||
--color-focus: hsl(var(--webui-color-state-focused)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@import 'colors.css'; | ||
@import 'config.css'; | ||
@import 'type.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.