@maggioli-design-system/styles 17.0.0 → 17.1.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.
- package/README.md +148 -85
- package/dist/css/base.css +1 -1
- package/dist/css/colors-hex-brand-rnd.css +2 -2
- package/dist/css/colors-hex-brand.css +2 -2
- package/dist/css/colors-hex-default.css +2 -2
- package/dist/css/colors-hex-label.css +2 -2
- package/dist/css/colors-hex-status.css +2 -2
- package/dist/css/colors-hex-theme.css +2 -2
- package/dist/css/colors-hex-tones.css +2 -2
- package/dist/css/colors-hex.css +2 -2
- package/dist/css/colors-rgb-brand-rnd.css +2 -2
- package/dist/css/colors-rgb-brand.css +2 -2
- package/dist/css/colors-rgb-default.css +2 -2
- package/dist/css/colors-rgb-label.css +2 -2
- package/dist/css/colors-rgb-status.css +2 -2
- package/dist/css/colors-rgb-theme.css +2 -2
- package/dist/css/colors-rgb-tones.css +2 -2
- package/dist/css/colors-rgb.css +2 -2
- package/dist/css/reset.css +3 -3
- package/dist/css/tailwind-theme-color.css +2 -2
- package/dist/css/tailwind-theme-typography.css +2 -2
- package/dist/css/theme.css +3 -3
- package/dist/css/tokens.editor.css +15 -0
- package/dist/css/transitions.css +2 -2
- package/dist/css/typography.css +2 -2
- package/dist/css/utility-typography.css +1 -1
- package/dist/dtcg/corner-shape-round.tokens.json +128 -0
- package/dist/dtcg/globals.tokens.json +722 -0
- package/dist/dtcg/magma.resolver.json +126 -0
- package/dist/dtcg/theme-depth-flat.tokens.json +152 -0
- package/dist/tailwind/consumption.json +4577 -0
- package/dist/tailwind/theme.css +1 -1
- package/package.json +12 -9
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ npm i @maggioli-design-system/styles
|
|
|
28
28
|
|
|
29
29
|
### Integration
|
|
30
30
|
|
|
31
|
-
The
|
|
31
|
+
The cascade layers are ordered for Tailwind: reset, vendor, theme, base, components, utilities, and your overrides last. Import the files in this order in your global CSS entry point:
|
|
32
32
|
|
|
33
33
|
```css
|
|
34
34
|
@layer reset, vendor, theme, base, components, utilities, overrides;
|
|
@@ -43,55 +43,76 @@ The layer order is thinked to be used with tailwindcss, so the first layer is th
|
|
|
43
43
|
@import '@fontsource/roboto/500.css' layer(vendor);
|
|
44
44
|
@import '@fontsource/roboto/700.css' layer(vendor);
|
|
45
45
|
@import '@fontsource/roboto/900.css' layer(vendor);
|
|
46
|
-
@import './iconsauce.css' layer(vendor);
|
|
47
46
|
@import '@maggioli-design-system/styles/dist/css/reset.css' layer(reset);
|
|
48
47
|
@import '@maggioli-design-system/styles/dist/css/globals.css' layer(theme);
|
|
49
48
|
@import '@maggioli-design-system/styles/dist/css/colors-rgb.css' layer(theme);
|
|
49
|
+
@import '@maggioli-design-system/styles/dist/css/typography.css' layer(theme);
|
|
50
|
+
@import '@maggioli-design-system/styles/dist/css/semantic.css' layer(theme);
|
|
51
|
+
@import '@maggioli-design-system/styles/dist/css/themes.css' layer(theme);
|
|
50
52
|
@import '@maggioli-design-system/styles/dist/css/hydrated.css' layer(base);
|
|
53
|
+
@import '@maggioli-design-system/styles/dist/css/transitions.css' layer(base);
|
|
51
54
|
@import '@maggioli-design-system/styles/dist/css/animations.css' layer(base);
|
|
52
55
|
@import '@maggioli-design-system/styles/dist/css/base.css' layer(base);
|
|
56
|
+
|
|
57
|
+
/* your Tailwind entry point, if any (see Tailwind below) */
|
|
53
58
|
@import './tailwind.css';
|
|
54
59
|
|
|
55
60
|
@layer overrides {
|
|
56
|
-
|
|
57
|
-
@apply
|
|
58
|
-
bg-tone-neutral-seed
|
|
59
|
-
text-tone-neutral-03
|
|
60
|
-
transition-colors
|
|
61
|
-
duration-300
|
|
62
|
-
ease-in-out;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
mds-button {
|
|
66
|
-
border-radius: var(--radius-2xl);
|
|
67
|
-
}
|
|
61
|
+
/* your own overrides of the --magma-* globals and --mds-* component tokens */
|
|
68
62
|
}
|
|
69
63
|
```
|
|
70
64
|
|
|
71
|
-
|
|
65
|
+
`base.css` already paints the `body` with the semantic roles (`--magma-surface-default`
|
|
66
|
+
and `--magma-text-default`), which is why `semantic.css` is required.
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
### Semantic colors
|
|
69
|
+
|
|
70
|
+
Color your UI with the semantic roles, not with raw palette steps: a role follows the
|
|
71
|
+
mode, the named theme (`data-theme-name`) and the high-contrast preference, a palette
|
|
72
|
+
step only follows the mode.
|
|
74
73
|
|
|
74
|
+
```html
|
|
75
|
+
<section class="bg-surface-raised text-fg-default border border-border-muted">
|
|
76
|
+
<p class="text-fg-muted">Secondary text</p>
|
|
77
|
+
</section>
|
|
75
78
|
```
|
|
76
79
|
|
|
80
|
+
```css
|
|
81
|
+
.panel {
|
|
82
|
+
background: rgb(var(--magma-surface-raised));
|
|
83
|
+
color: rgb(var(--magma-text-default));
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
The values come from `dist/css/semantic.css`, the Tailwind utilities from
|
|
88
|
+
`dist/tailwind/theme.css`. The roles, their pairing rules and the Magma 1 -> 2 map are
|
|
89
|
+
in the color guide shipped with the components package
|
|
90
|
+
(`@maggioli-design-system/magma/agents/color.md`).
|
|
91
|
+
|
|
92
|
+
### Palette
|
|
93
|
+
|
|
77
94
|
#### Colors with tailwind or web components
|
|
78
95
|
|
|
79
|
-
If you use tailwind or web components, you need
|
|
96
|
+
If you use tailwind or web components, you need the **rgb format** of the palette, the one
|
|
97
|
+
imported above:
|
|
80
98
|
|
|
81
99
|
```ts
|
|
82
|
-
import '@maggioli-design-system/styles/dist/css/colors-rgb
|
|
83
|
-
import '@maggioli-design-system/styles/dist/css/colors-rgb-status.css';
|
|
84
|
-
import '@maggioli-design-system/styles/dist/css/colors-rgb-label.css';
|
|
85
|
-
import '@maggioli-design-system/styles/dist/css/colors-rgb-brand.css';
|
|
100
|
+
import '@maggioli-design-system/styles/dist/css/colors-rgb.css';
|
|
86
101
|
```
|
|
87
102
|
|
|
88
|
-
|
|
103
|
+
The web components, the Tailwind utilities and the semantic layer read the palette as
|
|
104
|
+
custom properties in rgb channel format (`rr gg bb`). `colors-rgb.css` holds every group;
|
|
105
|
+
the per-group files (`colors-rgb-{tones,status,label,brand,default,theme}.css`) exist for
|
|
106
|
+
a custom setup, and the semantic roles need at least `default` (the `--variant-*` accents)
|
|
107
|
+
and `theme` (the `--surface-*`, `--border-*` and `--text-*` families) besides `tones` and
|
|
108
|
+
`status`.
|
|
89
109
|
|
|
90
|
-
|
|
110
|
+
A raw palette step is right only for a colour that encodes data rather than an
|
|
111
|
+
interface role (a `label-*` category, a `brand-*` identity). Outside tailwind:
|
|
91
112
|
|
|
92
113
|
```css
|
|
93
114
|
.selector {
|
|
94
|
-
color: rgb(var(--
|
|
115
|
+
color: rgb(var(--label-sky-04));
|
|
95
116
|
}
|
|
96
117
|
```
|
|
97
118
|
|
|
@@ -114,48 +135,52 @@ Then you can use them like this:
|
|
|
114
135
|
}
|
|
115
136
|
```
|
|
116
137
|
|
|
117
|
-
|
|
138
|
+
The hex files are for plain CSS only: they cannot take an alpha, and neither the
|
|
139
|
+
components nor the semantic roles can read them.
|
|
118
140
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
our color palette already supports dark mode, either according to your computer settings, or with manual support:
|
|
122
|
-
|
|
123
|
-
#### Manual mode
|
|
124
|
-
|
|
125
|
-
Just add the `dark-mode` class to the `html` tag:
|
|
126
|
-
|
|
127
|
-
```html
|
|
128
|
-
<html class="dark-mode">
|
|
129
|
-
```
|
|
141
|
+
---
|
|
130
142
|
|
|
131
|
-
|
|
143
|
+
### Dark mode
|
|
132
144
|
|
|
133
|
-
|
|
145
|
+
The palette and the semantic roles already flip between light and dark. Pick the mode with a
|
|
146
|
+
class on the `html` tag:
|
|
134
147
|
|
|
135
148
|
```html
|
|
136
|
-
<html class="
|
|
149
|
+
<html class="pref-mode-system"><!-- follows the OS --></html>
|
|
150
|
+
<html class="pref-mode-light"><!-- always light --></html>
|
|
151
|
+
<html class="pref-mode-dark"><!-- always dark --></html>
|
|
137
152
|
```
|
|
138
153
|
|
|
139
|
-
|
|
154
|
+
To let the user choose, use the `mds-pref-mode` component of
|
|
155
|
+
`@maggioli-design-system/magma`: it writes the class and remembers the choice. Tailwind's
|
|
156
|
+
`dark:` variant follows only the OS (`prefers-color-scheme`), not these classes; the
|
|
157
|
+
semantic roles need no `dark:`.
|
|
140
158
|
|
|
141
159
|
---
|
|
142
160
|
|
|
143
|
-
###
|
|
161
|
+
### Tailwind
|
|
162
|
+
|
|
163
|
+
With Tailwind 4, import Magma's theme (palette, typography tokens, semantic colors), its
|
|
164
|
+
typography utilities and its helpers in your Tailwind entry point, after Tailwind's own
|
|
165
|
+
theme and utilities (Magma ships its own reset, so Tailwind's preflight is left out):
|
|
144
166
|
|
|
145
|
-
|
|
146
|
-
|
|
167
|
+
```css
|
|
168
|
+
/* tailwind.css */
|
|
169
|
+
@import 'tailwindcss/theme.css' layer(theme);
|
|
170
|
+
@import 'tailwindcss/utilities.css' layer(utilities);
|
|
171
|
+
@import '@maggioli-design-system/styles/dist/tailwind/theme.css';
|
|
172
|
+
@import '@maggioli-design-system/styles/dist/tailwind/typography.css';
|
|
173
|
+
@import '@maggioli-design-system/styles/dist/tailwind/utilities.css';
|
|
174
|
+
```
|
|
147
175
|
|
|
148
|
-
|
|
176
|
+
With Tailwind 3, extend the [JS preset][tailwindcss-config] (the package `main`) and use
|
|
177
|
+
the layers in `dist/tailwind3/`. The preset does not work with Tailwind 4: its colors are
|
|
178
|
+
Tailwind 3 color functions.
|
|
149
179
|
|
|
150
180
|
```js
|
|
151
181
|
module.exports = {
|
|
152
|
-
content: [
|
|
153
|
-
|
|
154
|
-
],
|
|
155
|
-
important: false,
|
|
156
|
-
presets: [
|
|
157
|
-
require('@maggioli-design-system/styles'),
|
|
158
|
-
],
|
|
182
|
+
content: ['./src/**/*.{ts,tsx}'],
|
|
183
|
+
presets: [require('@maggioli-design-system/styles')],
|
|
159
184
|
}
|
|
160
185
|
```
|
|
161
186
|
|
|
@@ -163,17 +188,17 @@ module.exports = {
|
|
|
163
188
|
|
|
164
189
|
### Fonts
|
|
165
190
|
|
|
166
|
-
|
|
191
|
+
Magma does not bundle webfonts: the type scale uses **Roboto** (titles and actions: 500,
|
|
192
|
+
700, 900), **Karla** (UI text: 400, 700), **Merriweather** (reading text: 300, 400, plus 700
|
|
193
|
+
for bold) and **Roboto Mono** (code: 400). Load them with `@fontsource`; the weights are
|
|
194
|
+
the ones of the scale.
|
|
167
195
|
|
|
168
196
|
#### TypeScript
|
|
169
197
|
|
|
170
|
-
Importing fonts in TypeScript:
|
|
171
|
-
|
|
172
|
-
```ts
|
|
173
|
-
|
|
174
198
|
```ts
|
|
175
199
|
import '@fontsource/karla/400.css'
|
|
176
200
|
import '@fontsource/karla/700.css'
|
|
201
|
+
import '@fontsource/merriweather/300.css'
|
|
177
202
|
import '@fontsource/merriweather/400.css'
|
|
178
203
|
import '@fontsource/merriweather/700.css'
|
|
179
204
|
import '@fontsource/roboto-mono/400.css'
|
|
@@ -184,18 +209,7 @@ import '@fontsource/roboto/900.css'
|
|
|
184
209
|
|
|
185
210
|
#### CSS
|
|
186
211
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
```css
|
|
190
|
-
@import '@fontsource/karla/400.css';
|
|
191
|
-
@import '@fontsource/karla/700.css';
|
|
192
|
-
@import '@fontsource/merriweather/400.css';
|
|
193
|
-
@import '@fontsource/merriweather/700.css';
|
|
194
|
-
@import '@fontsource/roboto-mono/400.css';
|
|
195
|
-
@import '@fontsource/roboto/500.css';
|
|
196
|
-
@import '@fontsource/roboto/700.css';
|
|
197
|
-
@import '@fontsource/roboto/900.css';
|
|
198
|
-
```
|
|
212
|
+
In CSS use the `layer(vendor)` imports of the Integration block above.
|
|
199
213
|
|
|
200
214
|
Fontsource supports [variable fonts][fontsource-var-fonts].
|
|
201
215
|
|
|
@@ -250,27 +264,76 @@ never match, which makes an accidental import a no-op.
|
|
|
250
264
|
|
|
251
265
|
---
|
|
252
266
|
|
|
253
|
-
###
|
|
267
|
+
### Token data
|
|
268
|
+
|
|
269
|
+
Two kinds of generated JSON describe this package for tools that read tokens rather than
|
|
270
|
+
paint with them (a documentation site, a design tool). They complete the DTCG export of
|
|
271
|
+
`@maggioli-design-system/design-tokens` (its README, "Token data (DTCG)"), and use the
|
|
272
|
+
same names: a token is keyed by the custom property it is published as, the
|
|
273
|
+
`$extensions["it.maggioli.magma"].css` of its DTCG entry. To style a page, use the
|
|
274
|
+
stylesheets.
|
|
254
275
|
|
|
255
|
-
|
|
276
|
+
| File | Content |
|
|
277
|
+
| :--- | :--- |
|
|
278
|
+
| `dist/dtcg/globals.tokens.json` | The globals this package declares: the `--magma-*` of `globals.css`, the corner axis, the depth axis of `theme.css`. Same DTCG 2025.10 shape as design-tokens, aliasing its tokens where the CSS names one (`--magma-radius-md` is `{radius.squircle-md}`) |
|
|
279
|
+
| `dist/dtcg/corner-shape-round.tokens.json`, `theme-depth-flat.tokens.json` | What `[data-corner-shape='round']` and `:root[data-theme-depth='flat']` change |
|
|
280
|
+
| `dist/dtcg/magma.resolver.json` | The resolver of design-tokens plus these sets: `base`, `globals`, then the `mode`, `theme`, `corner-shape` and `theme-depth` modifiers |
|
|
281
|
+
| `dist/tailwind/consumption.json` | How each token is consumed through Tailwind 4 |
|
|
282
|
+
|
|
283
|
+
design-tokens' `base.tokens.json` and `globals.tokens.json` together hold every global
|
|
284
|
+
token of `tokens.editor.css`. The resolver points at the files of design-tokens as
|
|
285
|
+
`../../../design-tokens/dist/dtcg/`: the two packages sit side by side in
|
|
286
|
+
`node_modules/@maggioli-design-system/`, as they do in this repository.
|
|
287
|
+
|
|
288
|
+
#### consumption.json
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
"--magma-text-muted": { "theme": "--color-fg-muted", "namespace": "--color", "key": "fg-muted" }
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
- **`tokens`**: `theme` is the `@theme` variable that publishes the token; `namespace` and
|
|
295
|
+
`key` split it the way Tailwind reads it. Its utilities are `<root>-<key>` for every
|
|
296
|
+
root of `namespaces[namespace].utilities` (`text-fg-muted`, `bg-fg-muted`,
|
|
297
|
+
`border-fg-muted`, ...), its variants the patterns of `namespaces[namespace].variants`
|
|
298
|
+
with the key for `*` (`max-tablet:`, `@md:`).
|
|
299
|
+
- **`shadowed`**: the roots (or variant patterns) where that class reads another
|
|
300
|
+
variable, and which one (`null`: none of the theme). `--container-xs` has
|
|
301
|
+
`"max-w": "--spacing-xs"`: `max-w-xs` is 4px, the container is `max-w-(--container-xs)`.
|
|
302
|
+
- **`namespace: null`**: no utility reads the variable. Tailwind 4 has no `--border-*`
|
|
303
|
+
or `--duration-*` namespace, so `border-xs` does not exist and `duration-200` is
|
|
304
|
+
Tailwind's own 200ms, not the token: write `border-(length:--border-xs)`.
|
|
305
|
+
- **`property`**: a value that comes with another token, Tailwind's
|
|
306
|
+
`--<variable>--<property>` (`--text-size-title-h1--line-height`).
|
|
307
|
+
- **`spacing`**: `--spacing: 0.0025rem` multiplies every numeric step, so `gap-400` is
|
|
308
|
+
`400 x 0.0025rem = 1rem`. `utilities` lists the roots that take a step, `keys` the named
|
|
309
|
+
ones (`xs` ... `4xl`, `phrase`, `prose`, ...), `steps` the numeric keys the theme
|
|
310
|
+
publishes explicitly.
|
|
311
|
+
- **`utilities`**: every `@utility` of `dist/tailwind/*.css` and of the design-tokens
|
|
312
|
+
sheets they import, with where it is defined, what it `@apply`s, the tokens and the
|
|
313
|
+
Tailwind theme variables it reads (`text-title-h1` reads Tailwind's `--font-weight-black`)
|
|
314
|
+
and its compiled CSS.
|
|
315
|
+
|
|
316
|
+
The map is generated from Tailwind's own design system (the version is in `tailwind`),
|
|
317
|
+
loaded on the entry point of the [Tailwind](#tailwind) section (`entry`): every class and
|
|
318
|
+
variant Tailwind can generate is compiled, and nothing is listed by hand. It covers
|
|
319
|
+
Tailwind 4 only; the Tailwind 3 preset is legacy.
|
|
320
|
+
|
|
321
|
+
---
|
|
322
|
+
|
|
323
|
+
### Dist folder
|
|
256
324
|
|
|
257
|
-
| Folder | For |
|
|
258
|
-
|
|
|
259
|
-
| `css` |
|
|
260
|
-
| `css` |
|
|
325
|
+
| Folder | For | Files |
|
|
326
|
+
| --- | --- | --- |
|
|
327
|
+
| `css` | everyone | `layer.css` (the cascade layer order), `reset.css`, `globals.css` (the `--magma-*` globals and the corner axis), `colors-rgb.css` (+ one `colors-rgb-<group>.css` per group), `typography.css` (the non-color tokens: fonts, type sizes, spacing, radius, shadows), `semantic.css` (the semantic color roles), `themes.css` (the named themes), `hydrated.css`, `transitions.css`, `animations.css`, `base.css` |
|
|
328
|
+
| `css` | plain css | `colors-hex.css` (+ per group), `utility-typography.css` (the `typography-*` classes), `theme.css` (the `--depth` axis) |
|
|
261
329
|
| `css` | editors only, never import | `tokens.editor.css` |
|
|
262
|
-
| `css` |
|
|
263
|
-
| `
|
|
264
|
-
| `
|
|
265
|
-
| `
|
|
266
|
-
| `
|
|
267
|
-
| `tailwind` | tailwind | `base.css` |
|
|
268
|
-
| `tailwind` | tailwind components | `components.css` |
|
|
330
|
+
| `css` | tailwind (copied from design-tokens) | `tailwind-theme-color.css`, `tailwind-theme-typography.css` |
|
|
331
|
+
| `tailwind` | Tailwind 4 | `theme.css` (palette, typography tokens, semantic colors; imports `semantic.css`), `typography.css` (the `text-title-*`, `text-info-*`, ... utilities), `utilities.css` (`focus-bounce`, `focus-zoom`, ...), `base.css`, `reset.css`, `semantic.css` |
|
|
332
|
+
| `tailwind` | tools that read tokens | `consumption.json` (the Tailwind map, see [Token data](#token-data)) |
|
|
333
|
+
| `dtcg` | tools that read tokens | `globals.tokens.json`, `corner-shape-round.tokens.json`, `theme-depth-flat.tokens.json`, `magma.resolver.json` |
|
|
334
|
+
| `tailwind3` | Tailwind 3 | `base.css`, `components.css`, `reset.css`, `typography.css` |
|
|
269
335
|
|
|
270
336
|
[mds]: https://magma.maggiolicloud.it/
|
|
271
337
|
[css-variable-autocomplete]: https://marketplace.visualstudio.com/items?itemName=vunguyentuan.vscode-css-variables
|
|
272
338
|
[fontsource-var-fonts]: https://fontsource.org/docs/variable-fonts
|
|
273
|
-
[tailwindcss-config]: https://
|
|
274
|
-
[tailwindcss-doc]: https://tailwindcss.com/docs/installation
|
|
275
|
-
[tailwindcss-dark]: https://tailwindcss.com/docs/dark-mode#supporting-system-preference-and-manual-selection
|
|
276
|
-
[next-themes]: https://github.com/pacocoursey/next-themes#use
|
|
339
|
+
[tailwindcss-config]: https://github.com/magma-design-system/magma/blob/main/projects/styles/tailwind.config.js
|
package/dist/css/base.css
CHANGED
package/dist/css/colors-hex.css
CHANGED
package/dist/css/colors-rgb.css
CHANGED
package/dist/css/reset.css
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer reset {
|
|
4
|
-
:
|
|
5
|
-
|
|
4
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
5
|
+
:root {
|
|
6
6
|
interpolate-size: allow-keywords;
|
|
7
7
|
}
|
|
8
8
|
}
|
package/dist/css/theme.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
Theming axes (issue #574, B2) - layered on top of the semantic layer
|
|
3
|
-
(css/semantic.css). Three INDEPENDENT axes, all driven by
|
|
4
|
-
on <html> (cross-browser; no @container style(), which is below the
|
|
3
|
+
(build/css/semantic.css, generated). Three INDEPENDENT axes, all driven by
|
|
4
|
+
attributes/classes on <html> (cross-browser; no @container style(), which is below the
|
|
5
5
|
browserslist floor and crashes WebKit with shadow DOM):
|
|
6
6
|
|
|
7
7
|
1. mode (light|dark|system) -> the existing global --tone-* flip; the
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
3. --depth (numeric 0..1) -> shadow/elevation intensity, consumed as a
|
|
13
13
|
scalar in calc(). NOT a true|false style query.
|
|
14
14
|
|
|
15
|
-
Supersedes
|
|
15
|
+
Supersedes the former draft/theme.css (removed).
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/* --------------------------------------------------------------------------
|
|
@@ -816,6 +816,21 @@
|
|
|
816
816
|
--magma-overlay-blur: var(--magma-backdrop-blur);
|
|
817
817
|
--magma-overlay: rgb(var(--magma-overlay-color) / var(--magma-overlay-opacity));
|
|
818
818
|
|
|
819
|
+
/* globals: corner */
|
|
820
|
+
--magma-radius-none: var(--radius-none);
|
|
821
|
+
--magma-radius-3xs: var(--radius-squircle-3xs);
|
|
822
|
+
--magma-radius-2xs: var(--radius-squircle-2xs);
|
|
823
|
+
--magma-radius-xs: var(--radius-squircle-xs);
|
|
824
|
+
--magma-radius-sm: var(--radius-squircle-sm);
|
|
825
|
+
--magma-radius-md: var(--radius-squircle-md);
|
|
826
|
+
--magma-radius-lg: var(--radius-squircle-lg);
|
|
827
|
+
--magma-radius-xl: var(--radius-squircle-xl);
|
|
828
|
+
--magma-radius-2xl: var(--radius-squircle-2xl);
|
|
829
|
+
--magma-radius-3xl: var(--radius-squircle-3xl);
|
|
830
|
+
--magma-radius-4xl: var(--radius-squircle-4xl);
|
|
831
|
+
--magma-radius-5xl: var(--radius-squircle-5xl);
|
|
832
|
+
--magma-radius-full: var(--radius-full);
|
|
833
|
+
|
|
819
834
|
/* globals: theme */
|
|
820
835
|
--depth: 1;
|
|
821
836
|
--mds-elevation-raised: 0 calc(1px * var(--depth)) calc(2px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.06 * var(--depth))), 0 calc(2px * var(--depth)) calc(8px * var(--depth)) rgb(var(--magma-backdrop-color) / calc(0.08 * var(--depth)));
|
package/dist/css/transitions.css
CHANGED
package/dist/css/typography.css
CHANGED