@masmarino/gabarit 1.4.0 → 2.0.0

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.
@@ -0,0 +1,93 @@
1
+ Copyright 2019 IBM Corp. All rights reserved. IBMPlexSans-Italic[wdth,wght].ttf: Copyright 2019 IBM Corp. All rights reserved.
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,28 @@
1
+ // IBM Plex Sans, Sans Condensed and Mono, the faces the tokens name. Subset to Latin-1 plus typographic
2
+ // punctuation: a glyph outside it (an emoji, a non-Latin name) falls back to the next font of the
3
+ // stack. The application serves the files of this folder at $path, for instance with an Angular asset:
4
+ //
5
+ // { "glob": "*.woff2", "input": "node_modules/@masmarino/gabarit/fonts", "output": "fonts/ibm-plex" }
6
+ //
7
+ // then `@use '@masmarino/gabarit/fonts' with ($path: '/fonts/ibm-plex/');`.
8
+
9
+ $path: '/fonts/ibm-plex/' !default;
10
+
11
+ $faces: (
12
+ ('IBM Plex Sans', 400, 'ibm-plex-sans-400'),
13
+ ('IBM Plex Sans', 500, 'ibm-plex-sans-500'),
14
+ ('IBM Plex Sans', 600, 'ibm-plex-sans-600'),
15
+ ('IBM Plex Sans Condensed', 600, 'ibm-plex-sans-condensed-600'),
16
+ ('IBM Plex Mono', 400, 'ibm-plex-mono-400'),
17
+ ('IBM Plex Mono', 500, 'ibm-plex-mono-500')
18
+ );
19
+
20
+ @each $family, $weight, $file in $faces {
21
+ @font-face {
22
+ font-family: $family;
23
+ font-style: normal;
24
+ font-weight: $weight;
25
+ font-display: swap;
26
+ src: url('#{$path}#{$file}.woff2') format('woff2');
27
+ }
28
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masmarino/gabarit",
3
- "version": "1.4.0",
3
+ "version": "2.0.0",
4
4
  "description": "Angular design system — UI components and dataviz for self-hosted applications.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/Masmarino/Gabarit",
@@ -39,6 +39,12 @@
39
39
  "style": "./src/lib/tokens/index.scss",
40
40
  "default": "./src/lib/tokens/index.scss"
41
41
  },
42
+ "./fonts": {
43
+ "sass": "./fonts/index.scss",
44
+ "style": "./fonts/index.scss",
45
+ "default": "./fonts/index.scss"
46
+ },
47
+ "./fonts/*": "./fonts/*",
42
48
  "./package.json": {
43
49
  "default": "./package.json"
44
50
  },
@@ -0,0 +1,22 @@
1
+ // Shared by the components' styles, and offered to applications through the tokens.
2
+
3
+ // Out of sight, still read by assistive technology.
4
+ @mixin visually-hidden {
5
+ position: absolute;
6
+ width: 1px;
7
+ height: 1px;
8
+ padding: 0;
9
+ margin: -1px;
10
+ overflow: hidden;
11
+ clip-path: inset(50%);
12
+ white-space: nowrap;
13
+ border: 0;
14
+ }
15
+
16
+ // The keyboard focus ring. `--gbt-focus-ring` lets a theme recolour every ring at once.
17
+ @mixin focus-ring($offset: null) {
18
+ outline: 2px solid var(--gbt-focus-ring, var(--focus-ring));
19
+ @if $offset != null {
20
+ outline-offset: $offset;
21
+ }
22
+ }
@@ -0,0 +1,31 @@
1
+ // The document's own elements, for an application that wants them in the family's type: include once,
2
+ // at the root of its global styles (`@include tokens.document-base;`).
3
+ @mixin document-base {
4
+ body {
5
+ margin: 0;
6
+ font-family: var(--font-family);
7
+ font-feature-settings: 'kern', 'liga';
8
+ background: var(--bg-panel);
9
+ color: var(--text-primary);
10
+ -webkit-font-smoothing: antialiased;
11
+ }
12
+
13
+ // Titles in Plex Condensed: a page and its panels read as a document.
14
+ h1,
15
+ h2,
16
+ h3 {
17
+ font-family: var(--gbt-font-display, var(--font-display));
18
+ letter-spacing: -0.005em;
19
+ }
20
+
21
+ code,
22
+ kbd,
23
+ pre,
24
+ samp {
25
+ font-family: var(--gbt-font-mono);
26
+ }
27
+
28
+ ::selection {
29
+ background: color-mix(in srgb, var(--accent) 22%, transparent);
30
+ }
31
+ }
@@ -1,58 +1,59 @@
1
+ // The raw colours of the Ferris family. Components never read these: they go through the semantic
2
+ // tokens, which pick a step per theme.
1
3
  :root {
2
- --brand-50: #e8e9fd;
3
- --brand-100: #ced1f8;
4
- --brand-200: #98a0f0;
5
- --brand-300: #5b66e6;
6
- --brand-400: #2938db;
7
- --brand-500: #0d1ed3;
8
- --brand-600: #44476a;
9
- --brand-700: #091595;
10
- --brand-800: #07106e;
11
- --brand-900: #040943;
4
+ // Light neutrals, from the paper to the ink.
5
+ --slate-0: #ffffff;
6
+ --slate-50: #eff2f5;
7
+ --slate-100: #e9edf1;
8
+ --slate-200: #dce2e9;
9
+ --slate-300: #cfd5dc;
10
+ --slate-400: #a9b3c0;
11
+ --slate-500: #7d8794;
12
+ --slate-600: #4a525f;
13
+ --slate-700: #404954;
14
+ --slate-900: #10151c;
12
15
 
13
- --emerald-400: #55b48b;
16
+ // Dark neutrals: the graphite of the frame and the dark theme.
17
+ --graphite-1000: #0c1015;
18
+ --graphite-950: #0b0f14;
19
+ --graphite-900: #11161c;
20
+ --graphite-850: #181f27;
21
+ --graphite-800: #1f2730;
22
+ --graphite-700: #28323d;
23
+ --graphite-500: #646c77;
24
+ --graphite-400: #a1a9b5;
25
+ --graphite-300: #b8bfca;
26
+ --graphite-200: #cdd3db;
27
+ --graphite-100: #e7ebf1;
14
28
 
15
- --grey-50: #f7f9fb;
16
- --grey-100: #edf1f5;
17
- --grey-200: #d6e0e8;
18
- --grey-300: #b4c6d2;
19
- --grey-400: #8aafc5;
20
- --grey-500: #62889d;
21
- --grey-600: #3f6070;
22
- --grey-700: #2a4250;
23
- --grey-800: #192a34;
24
- --grey-900: #0d1b24;
29
+ // The crab's rust, kept for the marks that are the brand's own (focus, current page).
30
+ --rust-300: #ff9469;
31
+ --rust-400: #f0622a;
32
+ --rust-500: #c2410c;
33
+ --rust-600: #a8360a;
25
34
 
26
- --red-50: #fcf4f4;
27
- --red-100: #fbe5e5;
28
- --red-200: #f8d0d0;
29
- --red-300: #f2afaf;
30
- --red-400: #e88181;
31
- --red-500: #d95a5a;
32
- --red-600: #c04242;
33
- --red-700: #a23333;
34
- --red-800: #6e2e2e;
35
- --red-900: #3c1313;
35
+ --patina-300: #7ed4b8;
36
+ --patina-400: #3fbf95;
37
+ --patina-600: #15805d;
38
+ --patina-700: #0d5d43;
39
+ --patina-800: #0c523b;
36
40
 
37
- --amber-50: #fcf9ed;
38
- --amber-100: #f7efce;
39
- --amber-200: #eedd99;
40
- --amber-300: #e5c764;
41
- --amber-400: #dfb340;
42
- --amber-500: #d5962b;
43
- --amber-600: #bd7522;
44
- --amber-700: #9c5621;
45
- --amber-800: #673a20;
46
- --amber-900: #3c1d0c;
41
+ --amber-300: #f6b649;
42
+ --amber-400: #f5b13d;
43
+ --amber-600: #9a5b04;
44
+ --amber-700: #774603;
45
+ --amber-800: #6a3e03;
47
46
 
48
- --green-50: #effaf5;
49
- --green-100: #d7f4e5;
50
- --green-200: #b4e6cf;
51
- --green-300: #83d2b3;
52
- --green-400: #53b491;
53
- --green-500: #29a079;
54
- --green-600: #188362;
55
- --green-700: #146850;
56
- --green-800: #114436;
57
- --green-900: #08261f;
47
+ --red-200: #f7aeaa;
48
+ --red-300: #f38c85;
49
+ --red-400: #f2857d;
50
+ --red-600: #c23a32;
51
+ --red-700: #a1302a;
52
+ --red-750: #942c26;
53
+ --red-800: #842822;
54
+
55
+ --indigo-200: #b3beff;
56
+ --indigo-400: #8b9bff;
57
+ --indigo-600: #2f49c9;
58
+ --indigo-800: #283da8;
58
59
  }
@@ -1,144 +1,37 @@
1
- :root {
2
- --primary: var(--brand-600);
3
-
4
- --primary-hover: #32344e;
5
- --bg-principal: #ffffff;
6
- --bg-panel: #f5f5f7;
7
- --bg-hover: rgba(0, 0, 0, 0.05);
8
- --bg-track: var(--grey-200);
9
-
10
- --border-color: #7798b3;
11
- --gbt-hairline: color-mix(in srgb, var(--border-color) 45%, transparent);
12
- --gbt-card-border: color-mix(in srgb, var(--border-color) 60%, transparent);
13
-
14
- --text-primary: var(--grey-900);
15
- --text-secondary: var(--grey-700);
16
-
17
- --text-discret: #425c6b;
18
- --text-on-color: #ffffff;
19
-
20
- --text-on-primary: #ffffff;
21
- --text-on-error: #ffffff;
22
-
23
- --color-success-base: var(--green-500);
24
- --color-success-text: #195e48;
25
- --color-success-hover: var(--green-700);
26
- --color-success-bg: var(--green-100);
27
- --color-success-bg-text: var(--green-800);
1
+ @use 'themes';
28
2
 
29
- --color-warning-base: #c38927;
30
- --color-warning-text: #6f4d16;
31
- --color-warning-hover: var(--amber-600);
32
- --color-warning-bg: var(--amber-100);
33
- --color-warning-bg-text: var(--amber-800);
34
-
35
- --color-error-base: var(--red-500);
36
- --color-error-fill: #a82727;
37
- --color-error-text: #9e2525;
38
- --color-error-hover: #8f2121;
39
- --color-error-bg: var(--red-100);
40
- --color-error-bg-text: var(--red-800);
41
-
42
- --color-info-bg: #dbeafe;
43
- --color-info-bg-text: #1e40af;
44
-
45
- --bg-inverse: var(--grey-900);
46
-
47
- --color-success-vivid-base: var(--green-500);
48
- --color-warning-vivid-base: #c38927;
49
- --color-error-vivid-base: var(--red-500);
50
- --color-info-vivid-base: #2f6feb;
3
+ :root {
4
+ color-scheme: light;
5
+ @include themes.light-tokens;
51
6
 
52
- --chart-series-1-base: #bd8200;
53
- --chart-series-2-base: #009e73;
54
- --chart-series-3-base: #0072b2;
55
- --chart-series-4-base: #a6410f;
56
- --chart-series-5-base: #9c3f78;
57
- --chart-series-6-base: #5b4fb0;
58
- --chart-grid: var(--grey-200);
7
+ --frame: var(--graphite-950);
59
8
 
60
- --site-border-radius: 14px;
61
- --site-border-radius-sm: 10px;
62
- --site-border-radius-lg: 24px;
9
+ --site-border-radius: 4px;
10
+ --site-border-radius-sm: 3px;
11
+ --site-border-radius-lg: 6px;
63
12
 
64
13
  --gbt-control-height-sm: 2rem;
65
14
  --gbt-control-height-md: 2.375rem;
66
15
  --gbt-control-height-lg: 2.75rem;
67
16
 
68
- --site-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.06);
69
- --site-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
70
- --site-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
71
-
72
17
  --site-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
73
18
  --site-transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
74
19
 
75
- --font-family: 'Inter', sans-serif;
76
- --gbt-font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
77
- }
78
-
79
- @mixin dark-tokens {
80
- --primary: #a7aeff;
81
-
82
- --primary-hover: #c6caff;
83
-
84
- --bg-principal: var(--grey-900);
85
- --bg-panel: #0f1c26;
86
- --bg-hover: rgba(255, 255, 255, 0.06);
87
- --bg-track: var(--grey-800);
88
- --border-color: #436a80;
89
- --gbt-hairline: color-mix(in srgb, var(--border-color) 45%, transparent);
90
- --gbt-card-border: color-mix(in srgb, var(--border-color) 60%, transparent);
91
-
92
- --text-primary: var(--grey-50);
93
-
94
- --text-secondary: #9ebdcf;
95
- --text-discret: #86a9bb;
96
- --text-on-color: #ffffff;
97
-
98
- --text-on-primary: var(--grey-900);
99
- --text-on-error: var(--grey-900);
100
-
101
- --color-success-base: var(--green-400);
102
- --color-success-text: #56b693;
103
- --color-success-hover: var(--green-500);
104
- --color-success-bg: var(--green-900);
105
- --color-success-bg-text: var(--green-100);
106
-
107
- --color-warning-base: var(--amber-400);
108
- --color-warning-text: var(--amber-400);
109
- --color-warning-hover: var(--amber-500);
110
- --color-warning-bg: var(--amber-900);
111
- --color-warning-bg-text: var(--amber-100);
112
-
113
- --color-error-base: var(--red-400);
114
- --color-error-fill: #e98989;
115
- --color-error-text: #e98b8b;
116
- --color-error-hover: #eea3a3;
117
- --color-error-bg: var(--red-900);
118
- --color-error-bg-text: var(--red-100);
119
-
120
- --color-info-bg: #1e3a8a;
121
- --color-info-bg-text: #dbeafe;
122
-
123
- --chart-series-1-base: #e69f00;
124
- --chart-series-2-base: #009e73;
125
- --chart-series-3-base: #0072b2;
126
- --chart-series-4-base: #e2703a;
127
- --chart-series-5-base: #d691bd;
128
- --chart-series-6-base: #9d94e0;
129
- --chart-grid: var(--grey-800);
130
-
131
- --site-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.3);
132
- --site-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
133
- --site-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4), 0 4px 6px rgba(0, 0, 0, 0.3);
20
+ // IBM Plex, served by the application (see `@masmarino/gabarit/fonts`). Without it the stacks fall
21
+ // back to the system's sans and monospace.
22
+ --font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
23
+ --font-display: 'IBM Plex Sans Condensed', 'IBM Plex Sans', 'Arial Narrow', Arial, sans-serif;
24
+ --gbt-font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
134
25
  }
135
26
 
136
27
  @media (prefers-color-scheme: dark) {
137
28
  :root {
138
- @include dark-tokens;
29
+ color-scheme: dark;
30
+ @include themes.dark-tokens;
139
31
  }
140
32
  }
141
33
 
142
34
  :root[data-theme='dark'] {
143
- @include dark-tokens;
35
+ color-scheme: dark;
36
+ @include themes.dark-tokens;
144
37
  }
@@ -0,0 +1,144 @@
1
+ // The themes as mixins, with no output of their own: _semantic puts them on :root, and the parts drawn
2
+ // on the graphite frame (the shell's rail and bar, the sign-in page) take the frame's.
3
+ //
4
+ // Every text token reaches 7:1 on the page and on a panel (contrast.spec.ts), which is why a few of
5
+ // them sit a shade darker (or lighter, in the dark) than the marks of the same colour. The status
6
+ // tints are translucent, so they take the colour of the ground they sit on.
7
+
8
+ @mixin light-tokens {
9
+ --primary: var(--slate-900);
10
+ --primary-hover: #383d43;
11
+ --bg-principal: var(--slate-0);
12
+ --bg-panel: var(--slate-50);
13
+ --bg-hover: rgba(16, 21, 28, 0.07);
14
+ --bg-track: var(--slate-200);
15
+ --bg-inverse: var(--slate-900);
16
+
17
+ // The edge of a field or a control, 3:1 on the page (WCAG 1.4.11); the hairlines stay lighter.
18
+ --border-color: var(--slate-500);
19
+ --gbt-hairline: var(--slate-300);
20
+ --gbt-card-border: var(--slate-300);
21
+
22
+ --text-primary: var(--slate-900);
23
+ --text-secondary: var(--slate-700);
24
+ --text-discret: var(--slate-600);
25
+ --text-on-color: var(--slate-0);
26
+ --text-on-primary: var(--slate-0);
27
+ --text-on-error: var(--slate-0);
28
+
29
+ --accent: var(--rust-500);
30
+ --accent-text: var(--rust-600);
31
+ --focus-ring: var(--rust-500);
32
+
33
+ --color-success-base: var(--patina-600);
34
+ --color-success-text: var(--patina-700);
35
+ --color-success-hover: #146b50;
36
+ --color-success-bg: rgba(21, 128, 93, 0.12);
37
+ --color-success-bg-text: var(--patina-800);
38
+ --color-success-vivid-base: var(--patina-600);
39
+
40
+ --color-warning-base: var(--amber-600);
41
+ --color-warning-text: var(--amber-700);
42
+ --color-warning-hover: #7e4d09;
43
+ --color-warning-bg: rgba(154, 91, 4, 0.1);
44
+ --color-warning-bg-text: var(--amber-800);
45
+ --color-warning-vivid-base: var(--amber-600);
46
+
47
+ --color-error-base: var(--red-600);
48
+ --color-error-fill: var(--red-700);
49
+ --color-error-text: var(--red-750);
50
+ --color-error-hover: #842b27;
51
+ --color-error-bg: rgba(194, 58, 50, 0.1);
52
+ --color-error-bg-text: var(--red-800);
53
+ --color-error-vivid-base: var(--red-600);
54
+
55
+ --color-info-bg: rgba(47, 73, 201, 0.09);
56
+ --color-info-bg-text: var(--indigo-800);
57
+ --color-info-vivid-base: var(--indigo-600);
58
+
59
+ --chart-series-1-base: #bd8200;
60
+ --chart-series-2-base: #009e73;
61
+ --chart-series-3-base: #0072b2;
62
+ --chart-series-4-base: #a6410f;
63
+ --chart-series-5-base: #9c3f78;
64
+ --chart-series-6-base: #5b4fb0;
65
+ --chart-grid: var(--slate-300);
66
+
67
+ --site-shadow-sm: none;
68
+ --site-shadow-md: 0 0 0 1px var(--slate-400);
69
+ --site-shadow-lg: 0 0 0 1px var(--slate-400), 0 12px 32px rgba(16, 21, 28, 0.16);
70
+ }
71
+
72
+ @mixin dark-tokens {
73
+ --primary: var(--graphite-100);
74
+ --primary-hover: #c0c5cb;
75
+ --bg-principal: var(--graphite-850);
76
+ --bg-panel: var(--graphite-900);
77
+ --bg-hover: rgba(231, 235, 241, 0.07);
78
+ --bg-track: var(--graphite-700);
79
+ --bg-inverse: var(--graphite-100);
80
+
81
+ --border-color: var(--graphite-500);
82
+ --gbt-hairline: rgba(205, 215, 230, 0.12);
83
+ --gbt-card-border: rgba(205, 215, 230, 0.12);
84
+
85
+ --text-primary: var(--graphite-100);
86
+ --text-secondary: var(--graphite-300);
87
+ --text-discret: var(--graphite-400);
88
+ --text-on-color: var(--graphite-1000);
89
+ --text-on-primary: var(--graphite-1000);
90
+ --text-on-error: var(--graphite-1000);
91
+
92
+ --accent: var(--rust-400);
93
+ --accent-text: var(--rust-300);
94
+ --focus-ring: var(--rust-400);
95
+
96
+ --color-success-base: var(--patina-400);
97
+ --color-success-text: var(--patina-400);
98
+ --color-success-hover: #61c8a7;
99
+ --color-success-bg: rgba(63, 191, 149, 0.16);
100
+ --color-success-bg-text: var(--patina-300);
101
+ --color-success-vivid-base: var(--patina-400);
102
+
103
+ --color-warning-base: var(--amber-400);
104
+ --color-warning-text: var(--amber-400);
105
+ --color-warning-hover: #f2bd61;
106
+ --color-warning-bg: rgba(245, 177, 61, 0.14);
107
+ --color-warning-bg-text: var(--amber-300);
108
+ --color-warning-vivid-base: var(--amber-400);
109
+
110
+ --color-error-base: var(--red-400);
111
+ --color-error-fill: var(--red-400);
112
+ --color-error-text: var(--red-300);
113
+ --color-error-hover: #f09994;
114
+ --color-error-bg: rgba(242, 133, 125, 0.16);
115
+ --color-error-bg-text: var(--red-200);
116
+ --color-error-vivid-base: var(--red-400);
117
+
118
+ --color-info-bg: rgba(139, 155, 255, 0.16);
119
+ --color-info-bg-text: var(--indigo-200);
120
+ --color-info-vivid-base: var(--indigo-400);
121
+
122
+ --chart-series-1-base: #e69f00;
123
+ --chart-series-2-base: #009e73;
124
+ --chart-series-3-base: #0072b2;
125
+ --chart-series-4-base: #e2703a;
126
+ --chart-series-5-base: #d691bd;
127
+ --chart-series-6-base: #9d94e0;
128
+ --chart-grid: rgba(205, 215, 230, 0.12);
129
+
130
+ --site-shadow-sm: none;
131
+ --site-shadow-md: 0 0 0 1px rgba(205, 215, 230, 0.26);
132
+ --site-shadow-lg: 0 0 0 1px rgba(205, 215, 230, 0.26), 0 12px 32px rgba(0, 0, 0, 0.4);
133
+ }
134
+
135
+ // The graphite frame, the same in both themes: the dark tokens on a ground a little deeper than the
136
+ // dark theme's own. The rail's links are a step brighter, since light thin text on graphite reads
137
+ // paler than its ratio says.
138
+ @mixin frame-tokens {
139
+ @include dark-tokens;
140
+ --bg-panel: var(--graphite-950);
141
+ --text-secondary: var(--graphite-200);
142
+ color-scheme: dark;
143
+ color: var(--text-primary);
144
+ }