@maggioli-design-system/styles 17.3.0 → 17.5.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/CHANGELOG.md +34 -0
- package/LICENSE +21 -0
- package/README.md +58 -4
- package/dist/css/base.css +52 -4
- 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/globals.css +45 -2
- package/dist/css/hydrated.css +2 -0
- package/dist/css/reset.css +4 -4
- package/dist/css/tailwind-theme-color.css +2 -2
- package/dist/css/tailwind-theme-typography.css +37 -3
- package/dist/css/tokens.editor.css +107 -61
- package/dist/css/transitions.css +2 -2
- package/dist/css/typography.css +40 -3
- package/dist/css/utility-typography.css +126 -2
- package/dist/dtcg/globals.tokens.json +81 -8
- package/dist/tailwind/base.css +75 -2
- package/dist/tailwind/consumption.json +335 -24
- package/dist/tailwind/dark-mode.css +16 -0
- package/dist/tailwind/theme.css +3 -1
- package/dist/tailwind/typography.css +39 -0
- package/dist/tailwind/utilities.css +70 -0
- package/package.json +9 -8
|
@@ -18,19 +18,36 @@
|
|
|
18
18
|
animation-play-state: running;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
/* The text-box utilities trim nothing in an <input>: its line scrolls inside a box exactly as
|
|
22
|
+
* tall as the line, the trim leaves the glyphs taller than that box, and a drag that selects the
|
|
23
|
+
* text scrolls it up and down by the trimmed half-leading. The field sets its own height, so the
|
|
24
|
+
* trim gains nothing there. A <textarea> or a <select> keeps it: it adds no scroll to them. */
|
|
25
|
+
|
|
21
26
|
@utility text-box-uppercase {
|
|
22
27
|
min-height: auto;
|
|
23
28
|
text-box: trim-both cap alphabetic;
|
|
29
|
+
|
|
30
|
+
&:where(input) {
|
|
31
|
+
text-box: normal;
|
|
32
|
+
}
|
|
24
33
|
}
|
|
25
34
|
|
|
26
35
|
@utility text-box-vertical-margin {
|
|
27
36
|
min-height: auto;
|
|
28
37
|
text-box: trim-both text;
|
|
38
|
+
|
|
39
|
+
&:where(input) {
|
|
40
|
+
text-box: normal;
|
|
41
|
+
}
|
|
29
42
|
}
|
|
30
43
|
|
|
31
44
|
@utility text-box-vertical-align {
|
|
32
45
|
min-height: auto;
|
|
33
46
|
text-box: trim-both cap alphabetic;
|
|
47
|
+
|
|
48
|
+
&:where(input) {
|
|
49
|
+
text-box: normal;
|
|
50
|
+
}
|
|
34
51
|
}
|
|
35
52
|
|
|
36
53
|
@utility hide-scrollbar {
|
|
@@ -59,6 +76,59 @@
|
|
|
59
76
|
visibility: hidden;
|
|
60
77
|
}
|
|
61
78
|
|
|
79
|
+
/* The frame of a page (widths/page, #1189): the content stops at --magma-width-page and the
|
|
80
|
+
* gutter stays outside it, so the edge of the page is the edge of the content of mds-header-bar
|
|
81
|
+
* at every width. One element: the frame is the gutter and the width together. */
|
|
82
|
+
@utility page-frame {
|
|
83
|
+
box-sizing: content-box;
|
|
84
|
+
margin-inline: auto;
|
|
85
|
+
max-width: var(--magma-width-page, 1280px);
|
|
86
|
+
padding-inline: var(--magma-width-page-gutter, 24px);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* A group of fields (widths/field and titles/group, #1189): the fieldset of a form, with no
|
|
90
|
+
* border and no inset of its own, its legend in the style of a group title, the fields
|
|
91
|
+
* --magma-rhythm-between-fields apart. From 28rem up it lays out two tracks: a short field
|
|
92
|
+
* (mds-input-field short) takes one, so two short fields in a row share it and a lone one is
|
|
93
|
+
* half; every other child spans both. A track is never narrower than half of 28rem less half
|
|
94
|
+
* the gap, so the threshold is measured on the group itself, with no container query to place,
|
|
95
|
+
* and min(100%) keeps a track inside a narrow window. 28rem stays a literal: it is where the
|
|
96
|
+
* longest short answer mds-input knows, the tax code (16 characters), still fits a half. The
|
|
97
|
+
* rendered legend is no item of the grid: its space is a margin under it. */
|
|
98
|
+
@utility field-group {
|
|
99
|
+
align-items: start;
|
|
100
|
+
border: 0;
|
|
101
|
+
display: grid;
|
|
102
|
+
gap: var(--magma-rhythm-between-fields, 24px);
|
|
103
|
+
grid-template-columns: repeat(
|
|
104
|
+
auto-fill,
|
|
105
|
+
minmax(
|
|
106
|
+
min(
|
|
107
|
+
100%,
|
|
108
|
+
max(
|
|
109
|
+
14rem - var(--magma-rhythm-between-fields, 24px) / 2,
|
|
110
|
+
(100% - var(--magma-rhythm-between-fields, 24px)) / 2 - 1px
|
|
111
|
+
)
|
|
112
|
+
),
|
|
113
|
+
1fr
|
|
114
|
+
)
|
|
115
|
+
);
|
|
116
|
+
margin: 0;
|
|
117
|
+
min-inline-size: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
|
|
120
|
+
& > :not([short], legend) {
|
|
121
|
+
grid-column: 1 / -1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
& > legend {
|
|
125
|
+
@apply text-title-group;
|
|
126
|
+
|
|
127
|
+
margin-block-end: var(--magma-rhythm-title-content, 12px);
|
|
128
|
+
padding: 0;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
62
132
|
@layer utilities {
|
|
63
133
|
/* .focus-bounce:focus-visible {
|
|
64
134
|
--magma-outline-blur: var(--magma-outline-focus);
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maggioli-design-system/styles",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.5.0",
|
|
4
4
|
"description": "This module contains SCSS and CSS styles used by Maggioli Design System, it also makes available a Tailwind config based on Maggioli design tokens.",
|
|
5
5
|
"main": "./tailwind.config.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "npm run clean && npm run semantic && npm run corner && npm run properties && npm run editor.tokens && npm run copy && npm run hydrated && npm run dtcg && npm run consumption && npm run tailwind.build",
|
|
7
|
+
"build": "npm run clean && npm run semantic && npm run dark.variant && npm run corner && npm run properties && npm run editor.tokens && npm run copy && npm run hydrated && npm run dtcg && npm run consumption && npm run tailwind.build",
|
|
8
8
|
"clean": "tsx scripts/clean.ts",
|
|
9
9
|
"semantic": "tsx scripts/semantic.ts",
|
|
10
|
+
"dark.variant": "tsx scripts/dark-variant.ts",
|
|
10
11
|
"properties": "tsx scripts/properties.ts",
|
|
11
12
|
"corner": "tsx scripts/corner.ts",
|
|
12
13
|
"editor.tokens": "tsx scripts/editor-tokens.ts",
|
|
@@ -57,22 +58,22 @@
|
|
|
57
58
|
"role": "Software Engineer"
|
|
58
59
|
}
|
|
59
60
|
],
|
|
60
|
-
"license": "
|
|
61
|
+
"license": "MIT",
|
|
61
62
|
"dependencies": {
|
|
62
63
|
"@fontsource/karla": "5.3.0",
|
|
63
64
|
"@fontsource/merriweather": "5.3.0",
|
|
64
65
|
"@fontsource/roboto": "5.3.0",
|
|
65
66
|
"@fontsource/roboto-mono": "5.3.0",
|
|
66
|
-
"@maggioli-design-system/design-tokens": "^15.
|
|
67
|
+
"@maggioli-design-system/design-tokens": "^15.4.0",
|
|
67
68
|
"normalize.css": "8.0.1"
|
|
68
69
|
},
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@tailwindcss/postcss": "4.3.
|
|
71
|
-
"autoprefixer": "10.6.
|
|
71
|
+
"@tailwindcss/postcss": "4.3.4",
|
|
72
|
+
"autoprefixer": "10.6.2",
|
|
72
73
|
"handlebars": "4.7.10",
|
|
73
74
|
"postcss-cli": "11.0.1",
|
|
74
|
-
"postcss": "8.5.
|
|
75
|
+
"postcss": "8.5.32",
|
|
75
76
|
"postcss-import": "16.2.0",
|
|
76
|
-
"tailwindcss": "4.3.
|
|
77
|
+
"tailwindcss": "4.3.4"
|
|
77
78
|
}
|
|
78
79
|
}
|