-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE(web): Introduce themes and use new design tokens for …
…foundations #DS-1431
- Loading branch information
Showing
22 changed files
with
232 additions
and
143 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,6 +1,6 @@ | ||
@use '@tokens' as tokens; | ||
@use '@global' as global-tokens; | ||
|
||
// Always declare margins in the same direction. | ||
:where(address, blockquote, h1, h2, h3, h4, h5, h6, p, pre, dl, ol, ul, figure, hr, table, fieldset):not(:last-child) { | ||
margin-bottom: tokens.$space-600; | ||
margin-bottom: global-tokens.$space-700; | ||
} |
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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
// 1. We are able to handle our text sizing ourselves, disable any auto adjustments. | ||
// 2. We need to apply a global color to all elements in order to make the theme work. | ||
// Otherwise, we would have to apply the color to every single element in the project. | ||
|
||
@use '@tokens' as tokens; | ||
@use '@global' as global-tokens; | ||
@use '../settings/globals'; | ||
@use '../tools/typography'; | ||
|
||
:where(html) { | ||
text-size-adjust: none; // 1. | ||
} | ||
|
||
:where(body) { | ||
@include typography.generate(tokens.$body-medium-text-regular); | ||
@include typography.generate(global-tokens.$body-3-regular); | ||
} | ||
|
||
color: tokens.$text-primary-default; | ||
// stylelint-disable-next-line selector-max-universal -- 2. | ||
* { | ||
color: var(--#{globals.$prefix}color-text-primary); | ||
} |
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 @@ | ||
// This code is commented out until we switch it to the new token system | ||
// @forward '@csstools/normalize.css/normalize.css'; | ||
// @forward 'box-sizing'; | ||
// @forward 'images'; | ||
// @forward 'interactions'; | ||
// @forward 'links'; | ||
// @forward 'reset'; | ||
// @forward 'shared'; | ||
// @forward 'tokens'; | ||
// @forward 'typography'; | ||
@forward '@csstools/normalize.css/normalize.css'; | ||
@forward 'box-sizing'; | ||
@forward 'images'; | ||
@forward 'interactions'; | ||
@forward 'links'; | ||
@forward 'reset'; | ||
@forward 'shared'; | ||
@forward 'tokens'; | ||
@forward 'typography'; |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
// This code is commented out until we switch it to the new token system | ||
// @forward 'accessibility'; | ||
// @forward 'animations'; | ||
// @forward 'breakout'; | ||
// @forward 'images'; | ||
// @forward 'links'; | ||
// @forward 'lists'; | ||
// @forward 'scroll-control'; | ||
// @forward 'text'; | ||
// @forward 'typography'; | ||
@forward 'accessibility'; | ||
@forward 'animations'; | ||
@forward 'breakout'; | ||
@forward 'images'; | ||
@forward 'links'; | ||
@forward 'lists'; | ||
@forward 'scroll-control'; | ||
@forward 'text'; | ||
@forward 'typography'; |
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@use 'sass:list'; | ||
@use '@tokens' as tokens; | ||
|
||
$_alignments-x-extended: stretch; | ||
$_alignments-y-extended: stretch; | ||
|
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 @@ | ||
$prefix: 'spirit-'; |
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.