@primer/primitives 11.4.0-rc.9888784 → 11.4.0-rc.f798df25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/platforms/css.js +2 -2
- package/dist/build/schemas/dimensionToken.js +1 -1
- package/dist/build/schemas/dimensionValue.js +1 -1
- package/dist/css/base/typography/typography.css +11 -0
- package/dist/css/functional/themes/dark-colorblind-high-contrast.css +2 -5
- package/dist/css/functional/themes/dark-colorblind.css +2 -5
- package/dist/css/functional/themes/dark-dimmed-high-contrast.css +2 -5
- package/dist/css/functional/themes/dark-dimmed.css +2 -5
- package/dist/css/functional/themes/dark-high-contrast.css +2 -5
- package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +2 -5
- package/dist/css/functional/themes/dark-tritanopia.css +2 -5
- package/dist/css/functional/themes/dark.css +2 -5
- package/dist/css/functional/themes/light-colorblind-high-contrast.css +2 -5
- package/dist/css/functional/themes/light-colorblind.css +2 -5
- package/dist/css/functional/themes/light-high-contrast.css +2 -5
- package/dist/css/functional/themes/light-tritanopia-high-contrast.css +2 -5
- package/dist/css/functional/themes/light-tritanopia.css +2 -5
- package/dist/css/functional/themes/light.css +2 -5
- package/dist/css/functional/typography/typography.css +20 -20
- package/dist/css/primitives.css +0 -1
- package/dist/docs/base/typography/typography.json +319 -0
- package/dist/docs/functional/typography/typography.json +35 -35
- package/dist/fallbacks/base/typography/typography.json +12 -1
- package/dist/fallbacks/functional/typography/typography.json +15 -15
- package/dist/figma/typography/typography.json +140 -19
- package/dist/internalCss/dark-colorblind-high-contrast.css +2 -5
- package/dist/internalCss/dark-colorblind.css +2 -5
- package/dist/internalCss/dark-dimmed-high-contrast.css +2 -5
- package/dist/internalCss/dark-dimmed.css +2 -5
- package/dist/internalCss/dark-high-contrast.css +2 -5
- package/dist/internalCss/dark-tritanopia-high-contrast.css +2 -5
- package/dist/internalCss/dark-tritanopia.css +2 -5
- package/dist/internalCss/dark.css +2 -5
- package/dist/internalCss/light-colorblind-high-contrast.css +2 -5
- package/dist/internalCss/light-colorblind.css +2 -5
- package/dist/internalCss/light-high-contrast.css +2 -5
- package/dist/internalCss/light-tritanopia-high-contrast.css +2 -5
- package/dist/internalCss/light-tritanopia.css +2 -5
- package/dist/internalCss/light.css +2 -5
- package/dist/styleLint/base/typography/typography.json +319 -0
- package/dist/styleLint/functional/typography/typography.json +47 -47
- package/package.json +1 -2
- package/src/tokens/base/typography/typography.json5 +125 -0
- package/src/tokens/functional/typography/typography.json5 +20 -20
- package/dist/css/functional/motion/motion.css +0 -18
- package/dist/docs/functional/motion/motion.json +0 -250
- package/dist/fallbacks/functional/motion/motion.json +0 -18
- package/dist/styleLint/functional/motion/motion.json +0 -250
|
@@ -8,12 +8,12 @@ const getCssSelectors = (outputFile) => {
|
|
|
8
8
|
const mode = outputBasename.substring(0, 4) === 'dark' ? 'dark' : 'light';
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
selector: `[data-color-mode="${mode}"][data-${mode}-theme="${themeName}"], [data-color-mode="
|
|
11
|
+
selector: `[data-color-mode="${mode}"][data-${mode}-theme="${themeName}"], [data-color-mode="auto"][data-light-theme="${themeName}"]`,
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
query: '@media (prefers-color-scheme: dark)',
|
|
15
15
|
// [data-color-mode] here is duplicated to increase the specificity so that light mode can't override it when prefers-color-scheme: dark is enabled
|
|
16
|
-
selector: `[data-color-mode][data-color-mode="auto"][data-dark-theme="${themeName}"]
|
|
16
|
+
selector: `[data-color-mode][data-color-mode="auto"][data-dark-theme="${themeName}"]`,
|
|
17
17
|
},
|
|
18
18
|
];
|
|
19
19
|
};
|
|
@@ -12,7 +12,7 @@ export const dimensionToken = baseToken
|
|
|
12
12
|
$extensions: z
|
|
13
13
|
.object({
|
|
14
14
|
'org.primer.figma': z.object({
|
|
15
|
-
collection: collection(['base/size', 'functional/size', 'pattern/size', 'typography']),
|
|
15
|
+
collection: collection(['base/size', 'base/typography', 'functional/size', 'pattern/size', 'typography']),
|
|
16
16
|
scopes: scopes([
|
|
17
17
|
'all',
|
|
18
18
|
'size',
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { schemaErrorMessage } from '../utilities/index.js';
|
|
3
3
|
export const dimensionValue = z.union([
|
|
4
4
|
z.string().superRefine((dim, ctx) => {
|
|
5
|
-
if (!/(^-?[0-9]
|
|
5
|
+
if (!/(^-?[0-9]+\.?[0-9]*(px|rem)$|^-?[0-9]+\.?[0-9]*em$)/.test(dim)) {
|
|
6
6
|
ctx.addIssue({
|
|
7
7
|
code: 'custom',
|
|
8
8
|
message: schemaErrorMessage(`Invalid dimension: "${dim}"`, `Dimension must be a string with a unit (px, rem or em) or 0`),
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
:root {
|
|
2
|
+
--base-text-lineHeight-loose: 1.75; /** Use sparingly for very small text or when maximum readability is critical. Best for footnotes, legal text, or content requiring high accessibility. */
|
|
3
|
+
--base-text-lineHeight-normal: 1.5; /** Default choice for body text and general UI content. Provides optimal readability for paragraphs, descriptions, and most multi-line text. Use when unsure which line-height to pick. */
|
|
4
|
+
--base-text-lineHeight-relaxed: 1.625; /** Use for longer-form content, smaller text sizes (12-13px), or when increased readability is desired. Good for text that needs extra breathing room. */
|
|
5
|
+
--base-text-lineHeight-snug: 1.375; /** Use for display text, large headings, or short multi-line text where moderate density is needed. Good for hero sections and marketing headlines. */
|
|
6
|
+
--base-text-lineHeight-tight: 1.25; /** Use for single-line text in compact UI elements like labels, badges, buttons, or captions where vertical space is limited. Not recommended for multi-line body text due to reduced readability. */
|
|
7
|
+
--base-text-size-2xl: 2.5rem; /** 40px - Display text for hero sections. */
|
|
8
|
+
--base-text-size-lg: 1.25rem; /** 20px - Medium titles and subtitles. */
|
|
9
|
+
--base-text-size-md: 1rem; /** 16px - Large body text and small titles. */
|
|
10
|
+
--base-text-size-sm: 0.875rem; /** 14px - Default body text size for UI. */
|
|
11
|
+
--base-text-size-xl: 2rem; /** 32px - Large titles and page headings. */
|
|
12
|
+
--base-text-size-xs: 0.75rem; /** 12px - Smallest text size for captions and compact UI elements. */
|
|
2
13
|
--base-text-weight-light: 300;
|
|
3
14
|
--base-text-weight-medium: 500;
|
|
4
15
|
--base-text-weight-normal: 400;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_colorblind_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_colorblind_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_colorblind_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_colorblind_high_contrast"] {
|
|
5
3
|
--button-primary-bgColor-active: #3685f3;
|
|
6
4
|
--button-primary-bgColor-hover: #2a7aef;
|
|
7
5
|
--button-primary-borderColor-disabled: #1158c7;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind_high_contrast"] {
|
|
903
900
|
--button-primary-bgColor-active: #3685f3;
|
|
904
901
|
--button-primary-bgColor-hover: #2a7aef;
|
|
905
902
|
--button-primary-borderColor-disabled: #1158c7;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_colorblind"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_colorblind"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_colorblind"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_colorblind"] {
|
|
5
3
|
--button-primary-bgColor-active: #3685f3;
|
|
6
4
|
--button-primary-bgColor-hover: #2a7aef;
|
|
7
5
|
--button-primary-borderColor-disabled: #1158c7;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_colorblind"] {
|
|
903
900
|
--button-primary-bgColor-active: #3685f3;
|
|
904
901
|
--button-primary-bgColor-hover: #2a7aef;
|
|
905
902
|
--button-primary-borderColor-disabled: #1158c7;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_dimmed_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_dimmed_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_dimmed_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_dimmed_high_contrast"] {
|
|
5
3
|
--button-danger-fgColor-active: #ffffff;
|
|
6
4
|
--button-danger-fgColor-hover: #ffffff;
|
|
7
5
|
--button-danger-iconColor-hover: #ffffff;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed_high_contrast"] {
|
|
903
900
|
--button-danger-fgColor-active: #ffffff;
|
|
904
901
|
--button-danger-fgColor-hover: #ffffff;
|
|
905
902
|
--button-danger-iconColor-hover: #ffffff;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_dimmed"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_dimmed"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_dimmed"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_dimmed"] {
|
|
5
3
|
--button-danger-fgColor-active: #ffffff;
|
|
6
4
|
--button-danger-fgColor-hover: #ffffff;
|
|
7
5
|
--button-danger-fgColor-rest: #ea5c53;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-danger-borderColor-active: var(--button-danger-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_dimmed"] {
|
|
903
900
|
--button-danger-fgColor-active: #ffffff;
|
|
904
901
|
--button-danger-fgColor-hover: #ffffff;
|
|
905
902
|
--button-danger-fgColor-rest: #ea5c53;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_high_contrast"] {
|
|
5
3
|
--button-primary-bgColor-active: #109135;
|
|
6
4
|
--button-primary-bgColor-disabled: #048f2f;
|
|
7
5
|
--button-primary-bgColor-hover: #08792b;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_high_contrast"] {
|
|
903
900
|
--button-primary-bgColor-active: #109135;
|
|
904
901
|
--button-primary-bgColor-disabled: #048f2f;
|
|
905
902
|
--button-primary-bgColor-hover: #08792b;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_tritanopia_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_tritanopia_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_tritanopia_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_tritanopia_high_contrast"] {
|
|
5
3
|
--button-outline-bgColor-active: #0d419d;
|
|
6
4
|
--button-primary-bgColor-active: #3685f3;
|
|
7
5
|
--button-primary-bgColor-disabled: #5fabfe;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia_high_contrast"] {
|
|
903
900
|
--button-outline-bgColor-active: #0d419d;
|
|
904
901
|
--button-primary-bgColor-active: #3685f3;
|
|
905
902
|
--button-primary-bgColor-disabled: #5fabfe;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark_tritanopia"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark_tritanopia"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark_tritanopia"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark_tritanopia"] {
|
|
5
3
|
--bgColor-sponsors-muted: #db61a21a;
|
|
6
4
|
--button-danger-fgColor-rest: #fa5e55;
|
|
7
5
|
--button-outline-bgColor-active: #0d419d;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark_tritanopia"] {
|
|
903
900
|
--bgColor-sponsors-muted: #db61a21a;
|
|
904
901
|
--button-danger-fgColor-rest: #fa5e55;
|
|
905
902
|
--button-outline-bgColor-active: #0d419d;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="dark"][data-dark-theme="dark"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="dark"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="dark"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="dark"] {
|
|
5
3
|
--button-danger-fgColor-rest: #fa5e55;
|
|
6
4
|
--button-primary-bgColor-active: #2e9a40;
|
|
7
5
|
--button-primary-bgColor-disabled: #105823;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="dark"] {
|
|
903
900
|
--button-danger-fgColor-rest: #fa5e55;
|
|
904
901
|
--button-primary-bgColor-active: #2e9a40;
|
|
905
902
|
--button-primary-bgColor-disabled: #105823;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light_colorblind_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light_colorblind_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light_colorblind_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light_colorblind_high_contrast"] {
|
|
5
3
|
--button-outline-bgColor-active: #033f9d;
|
|
6
4
|
--button-primary-bgColor-active: #075fc8;
|
|
7
5
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--controlKnob-borderColor-rest: var(--control-borderColor-emphasis);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind_high_contrast"] {
|
|
903
900
|
--button-outline-bgColor-active: #033f9d;
|
|
904
901
|
--button-primary-bgColor-active: #075fc8;
|
|
905
902
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light_colorblind"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light_colorblind"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light_colorblind"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light_colorblind"] {
|
|
5
3
|
--button-outline-bgColor-active: #0757ba;
|
|
6
4
|
--button-primary-bgColor-active: #075fc8;
|
|
7
5
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_colorblind"] {
|
|
903
900
|
--button-outline-bgColor-active: #0757ba;
|
|
904
901
|
--button-primary-bgColor-active: #075fc8;
|
|
905
902
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light_high_contrast"] {
|
|
5
3
|
--button-outline-bgColor-active: #033f9d;
|
|
6
4
|
--button-primary-bgColor-active: #03501b;
|
|
7
5
|
--button-primary-bgColor-disabled: #85cb97;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--controlKnob-borderColor-rest: var(--control-borderColor-emphasis);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_high_contrast"] {
|
|
903
900
|
--button-outline-bgColor-active: #033f9d;
|
|
904
901
|
--button-primary-bgColor-active: #03501b;
|
|
905
902
|
--button-primary-bgColor-disabled: #85cb97;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light_tritanopia_high_contrast"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light_tritanopia_high_contrast"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light_tritanopia_high_contrast"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light_tritanopia_high_contrast"] {
|
|
5
3
|
--button-outline-bgColor-active: #033f9d;
|
|
6
4
|
--button-primary-bgColor-active: #075fc8;
|
|
7
5
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--controlKnob-borderColor-rest: var(--control-borderColor-emphasis);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia_high_contrast"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia_high_contrast"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia_high_contrast"] {
|
|
903
900
|
--button-outline-bgColor-active: #033f9d;
|
|
904
901
|
--button-primary-bgColor-active: #075fc8;
|
|
905
902
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light_tritanopia"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light_tritanopia"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light_tritanopia"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light_tritanopia"] {
|
|
5
3
|
--button-outline-bgColor-active: #0757ba;
|
|
6
4
|
--button-primary-bgColor-active: #075fc8;
|
|
7
5
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light_tritanopia"] {
|
|
903
900
|
--button-outline-bgColor-active: #0757ba;
|
|
904
901
|
--button-primary-bgColor-active: #075fc8;
|
|
905
902
|
--button-primary-bgColor-disabled: #92caff;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[data-color-mode="light"][data-light-theme="light"],
|
|
2
|
-
[data-color-mode="
|
|
3
|
-
[data-color-mode="auto"][data-light-theme="light"],
|
|
4
|
-
[data-color-mode="auto"][data-light-theme="light"] ::backdrop {
|
|
2
|
+
[data-color-mode="auto"][data-light-theme="light"] {
|
|
5
3
|
--bgColor-success-emphasis: #1f883d;
|
|
6
4
|
--button-outline-bgColor-active: #0757ba;
|
|
7
5
|
--button-primary-bgColor-active: #197935;
|
|
@@ -898,8 +896,7 @@
|
|
|
898
896
|
--button-outline-borderColor-active: var(--button-outline-borderColor-hover);
|
|
899
897
|
}
|
|
900
898
|
@media (prefers-color-scheme: dark) {
|
|
901
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light"]
|
|
902
|
-
[data-color-mode][data-color-mode="auto"][data-dark-theme="light"] ::backdrop {
|
|
899
|
+
[data-color-mode][data-color-mode="auto"][data-dark-theme="light"] {
|
|
903
900
|
--bgColor-success-emphasis: #1f883d;
|
|
904
901
|
--button-outline-bgColor-active: #0757ba;
|
|
905
902
|
--button-primary-bgColor-active: #197935;
|
|
@@ -3,34 +3,34 @@
|
|
|
3
3
|
--fontStack-sansSerif: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
4
4
|
--fontStack-sansSerifDisplay: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
5
5
|
--fontStack-system: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
|
|
6
|
-
--text-body-lineHeight-large: 1.5;
|
|
7
|
-
--text-body-lineHeight-medium: 1.42857;
|
|
8
|
-
--text-body-lineHeight-small: 1.66667;
|
|
9
|
-
--text-body-size-large: 1rem;
|
|
10
|
-
--text-body-size-medium: 0.875rem;
|
|
11
|
-
--text-body-size-small: 0.75rem;
|
|
12
|
-
--text-caption-lineHeight: 1.3333;
|
|
13
|
-
--text-caption-size: 0.75rem;
|
|
14
|
-
--text-codeBlock-lineHeight: 1.5385;
|
|
15
6
|
--text-codeBlock-size: 0.8125rem;
|
|
16
7
|
--text-codeInline-size: 0.9285em;
|
|
17
|
-
--text-
|
|
18
|
-
--text-
|
|
19
|
-
--text-
|
|
20
|
-
--text-
|
|
21
|
-
--text-
|
|
22
|
-
--text-
|
|
23
|
-
--text-title-lineHeight-medium: 1.6;
|
|
24
|
-
--text-title-lineHeight-small: 1.5;
|
|
25
|
-
--text-title-size-large: 2rem;
|
|
26
|
-
--text-title-size-medium: 1.25rem;
|
|
27
|
-
--text-title-size-small: 1rem;
|
|
8
|
+
--text-body-lineHeight-large: var(--base-text-lineHeight-normal);
|
|
9
|
+
--text-body-lineHeight-medium: var(--base-text-lineHeight-normal);
|
|
10
|
+
--text-body-lineHeight-small: var(--base-text-lineHeight-relaxed);
|
|
11
|
+
--text-body-size-large: var(--base-text-size-md);
|
|
12
|
+
--text-body-size-medium: var(--base-text-size-sm);
|
|
13
|
+
--text-body-size-small: var(--base-text-size-xs);
|
|
28
14
|
--text-body-weight: var(--base-text-weight-normal);
|
|
15
|
+
--text-caption-lineHeight: var(--base-text-lineHeight-tight);
|
|
16
|
+
--text-caption-size: var(--base-text-size-xs);
|
|
29
17
|
--text-caption-weight: var(--base-text-weight-normal);
|
|
18
|
+
--text-codeBlock-lineHeight: var(--base-text-lineHeight-normal);
|
|
30
19
|
--text-codeBlock-weight: var(--base-text-weight-normal);
|
|
31
20
|
--text-codeInline-weight: var(--base-text-weight-normal);
|
|
21
|
+
--text-display-lineBoxHeight: var(--base-text-lineHeight-snug);
|
|
22
|
+
--text-display-lineHeight: var(--base-text-lineHeight-snug);
|
|
23
|
+
--text-display-size: var(--base-text-size-2xl);
|
|
32
24
|
--text-display-weight: var(--base-text-weight-medium);
|
|
25
|
+
--text-subtitle-lineHeight: var(--base-text-lineHeight-relaxed);
|
|
26
|
+
--text-subtitle-size: var(--base-text-size-lg);
|
|
33
27
|
--text-subtitle-weight: var(--base-text-weight-normal);
|
|
28
|
+
--text-title-lineHeight-large: var(--base-text-lineHeight-normal);
|
|
29
|
+
--text-title-lineHeight-medium: var(--base-text-lineHeight-relaxed);
|
|
30
|
+
--text-title-lineHeight-small: var(--base-text-lineHeight-normal);
|
|
31
|
+
--text-title-size-large: var(--base-text-size-xl);
|
|
32
|
+
--text-title-size-medium: var(--base-text-size-lg);
|
|
33
|
+
--text-title-size-small: var(--base-text-size-md);
|
|
34
34
|
--text-title-weight-large: var(--base-text-weight-semibold);
|
|
35
35
|
--text-title-weight-medium: var(--base-text-weight-semibold);
|
|
36
36
|
--text-title-weight-small: var(--base-text-weight-semibold);
|
package/dist/css/primitives.css
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@import './base/motion/motion.css';
|
|
2
2
|
@import './base/size/size.css';
|
|
3
3
|
@import './base/typography/typography.css';
|
|
4
|
-
@import './functional/motion/motion.css';
|
|
5
4
|
@import './functional/size/border.css';
|
|
6
5
|
@import './functional/size/breakpoints.css';
|
|
7
6
|
@import './functional/size/size-coarse.css';
|