@cirthcss/cirth 0.9.0 → 0.11.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 +34 -13
- package/dist/cirth.classless.css +365 -224
- package/dist/cirth.classless.min.css +1 -1
- package/dist/cirth.classless.scoped.css +353 -224
- package/dist/cirth.classless.scoped.min.css +1 -1
- package/dist/cirth.css +374 -272
- package/dist/cirth.min.css +1 -1
- package/dist/cirth.scoped.css +365 -275
- package/dist/cirth.scoped.min.css +1 -1
- package/dist/presets/cobalt.css +39 -3
- package/dist/presets/cobalt.min.css +1 -1
- package/dist/presets/coral.css +41 -3
- package/dist/presets/coral.min.css +1 -1
- package/package.json +15 -8
package/dist/presets/coral.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[data-theme="light"], :root:not([data-theme="dark"]), :host(:not([data-theme="dark"])) {
|
|
1
|
+
:where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
|
|
2
2
|
--cirth-background-color: oklch(97.4% .004 35);
|
|
3
3
|
--cirth-card-background-color: oklch(100% 0 0);
|
|
4
4
|
--cirth-muted-color: oklch(52% .02 35);
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@media only screen and (prefers-color-scheme: dark) {
|
|
20
|
-
:root:not([data-theme]), :host(:not([data-theme])) {
|
|
20
|
+
:root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
|
|
21
21
|
--cirth-background-color: oklch(19.5% .006 35);
|
|
22
22
|
--cirth-card-background-color: oklch(23% .008 35);
|
|
23
23
|
--cirth-muted-color: oklch(66% .02 35);
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
[data-theme="dark"] {
|
|
39
|
+
:where([data-theme="dark"]) {
|
|
40
40
|
--cirth-background-color: oklch(19.5% .006 35);
|
|
41
41
|
--cirth-card-background-color: oklch(23% .008 35);
|
|
42
42
|
--cirth-muted-color: oklch(66% .02 35);
|
|
@@ -54,6 +54,44 @@
|
|
|
54
54
|
oklch(80% .1 35 / .4);
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
@media (prefers-contrast: more) {
|
|
58
|
+
:where([data-theme="light"]), :root:where(:not([data-theme="dark"])), :host(:where(:not([data-theme="dark"]))) {
|
|
59
|
+
--cirth-muted-color: oklch(40% .02 35);
|
|
60
|
+
--cirth-muted-border-color: oklch(57% .02 35);
|
|
61
|
+
--cirth-primary: oklch(40% .14 35);
|
|
62
|
+
--cirth-primary-hover: oklch(35% .12 35);
|
|
63
|
+
--cirth-primary-underline: var(--cirth-primary);
|
|
64
|
+
--cirth-primary-focus: oklch(45% .15 35);
|
|
65
|
+
--cirth-link-visited-color: oklch(40% .03 35);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@media only screen and (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
|
70
|
+
:root:where(:not([data-theme])), :host(:where(:not([data-theme]))) {
|
|
71
|
+
--cirth-muted-color: oklch(80% .02 35);
|
|
72
|
+
--cirth-muted-border-color: oklch(57% .02 35);
|
|
73
|
+
--cirth-card-border-color: var(--cirth-muted-border-color);
|
|
74
|
+
--cirth-primary: oklch(80% .1 35);
|
|
75
|
+
--cirth-primary-hover: oklch(85% .08 35);
|
|
76
|
+
--cirth-primary-underline: var(--cirth-primary);
|
|
77
|
+
--cirth-primary-focus: oklch(68% .16 35);
|
|
78
|
+
--cirth-link-visited-color: oklch(80% .03 35);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@media (prefers-contrast: more) {
|
|
83
|
+
:where([data-theme="dark"]) {
|
|
84
|
+
--cirth-muted-color: oklch(80% .02 35);
|
|
85
|
+
--cirth-muted-border-color: oklch(57% .02 35);
|
|
86
|
+
--cirth-card-border-color: var(--cirth-muted-border-color);
|
|
87
|
+
--cirth-primary: oklch(80% .1 35);
|
|
88
|
+
--cirth-primary-hover: oklch(85% .08 35);
|
|
89
|
+
--cirth-primary-underline: var(--cirth-primary);
|
|
90
|
+
--cirth-primary-focus: oklch(68% .16 35);
|
|
91
|
+
--cirth-link-visited-color: oklch(80% .03 35);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
57
95
|
:root, :host {
|
|
58
96
|
--cirth-border-radius: var(--cirth-radius-2xl);
|
|
59
97
|
--cirth-font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-theme=light],:root:not([data-theme=dark]),:host(:not([data-theme=dark])){--cirth-background-color:oklch(97.4% .004 35);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(52% .02 35);--cirth-muted-border-color:oklch(88% .02 35);--cirth-text-selection-color:oklch(65% .17 35/.25);--cirth-primary:oklch(55% .17 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(55% .17 35/.5);--cirth-primary-hover:oklch(45% .15 35);--cirth-primary-hover-background:oklch(50% .16 35);--cirth-primary-focus:oklch(55% .17 35/.75);--cirth-link-visited-color:oklch(48.3% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(65% .17 35/.01698), .0335rem .067rem .402rem oklch(65% .17 35/.024), .0625rem .125rem .75rem oklch(65% .17 35/.03), .1125rem .225rem 1.35rem oklch(65% .17 35/.036), .2085rem .417rem 2.502rem oklch(65% .17 35/.04302), .5rem 1rem 6rem oklch(65% .17 35/.06), 0 0 0 .0625rem oklch(65% .17 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(65% .17 35/.35)}@media only screen and (prefers-color-scheme:dark){:root:not([data-theme]),:host(:not([data-theme])){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}}[data-theme=dark]{--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}:root,:host{--cirth-border-radius:var(--cirth-radius-2xl);--cirth-font-family:"Trebuchet MS", "Segoe UI", Verdana, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-5);--cirth-transition:var(--cirth-duration-slow) cubic-bezier(.34, 1.56, .64, 1)}
|
|
1
|
+
:where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-background-color:oklch(97.4% .004 35);--cirth-card-background-color:oklch(100% 0 0);--cirth-muted-color:oklch(52% .02 35);--cirth-muted-border-color:oklch(88% .02 35);--cirth-text-selection-color:oklch(65% .17 35/.25);--cirth-primary:oklch(55% .17 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(55% .17 35/.5);--cirth-primary-hover:oklch(45% .15 35);--cirth-primary-hover-background:oklch(50% .16 35);--cirth-primary-focus:oklch(55% .17 35/.75);--cirth-link-visited-color:oklch(48.3% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(65% .17 35/.01698), .0335rem .067rem .402rem oklch(65% .17 35/.024), .0625rem .125rem .75rem oklch(65% .17 35/.03), .1125rem .225rem 1.35rem oklch(65% .17 35/.036), .2085rem .417rem 2.502rem oklch(65% .17 35/.04302), .5rem 1rem 6rem oklch(65% .17 35/.06), 0 0 0 .0625rem oklch(65% .17 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(65% .17 35/.35)}@media only screen and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}}:where([data-theme=dark]){--cirth-background-color:oklch(19.5% .006 35);--cirth-card-background-color:oklch(23% .008 35);--cirth-muted-color:oklch(66% .02 35);--cirth-muted-border-color:oklch(30% .025 35);--cirth-text-selection-color:oklch(68% .16 35/.1875);--cirth-primary:oklch(68% .16 35);--cirth-primary-background:oklch(55% .17 35);--cirth-primary-underline:oklch(68% .16 35/.5);--cirth-primary-hover:oklch(80% .1 35);--cirth-primary-hover-background:oklch(60% .18 35);--cirth-primary-focus:oklch(68% .16 35/.7);--cirth-link-visited-color:oklch(65% .03 35);--cirth-box-shadow:.0145rem .029rem .174rem oklch(68% .16 35/.01698), .0335rem .067rem .402rem oklch(68% .16 35/.024), .0625rem .125rem .75rem oklch(68% .16 35/.03), .1125rem .225rem 1.35rem oklch(68% .16 35/.036), .2085rem .417rem 2.502rem oklch(68% .16 35/.04302), .5rem 1rem 6rem oklch(68% .16 35/.06), 0 0 0 .0625rem oklch(68% .16 35/.015);--cirth-button-hover-box-shadow:0 .5rem 1rem oklch(80% .1 35/.4)}@media (prefers-contrast:more){:where([data-theme=light]),:root:where(:not([data-theme=dark])),:host(:where(:not([data-theme=dark]))){--cirth-muted-color:oklch(40% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-primary:oklch(40% .14 35);--cirth-primary-hover:oklch(35% .12 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(45% .15 35);--cirth-link-visited-color:oklch(40% .03 35)}}@media only screen and (prefers-contrast:more) and (prefers-color-scheme:dark){:root:where(:not([data-theme])),:host(:where(:not([data-theme]))){--cirth-muted-color:oklch(80% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .1 35);--cirth-primary-hover:oklch(85% .08 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(68% .16 35);--cirth-link-visited-color:oklch(80% .03 35)}}@media (prefers-contrast:more){:where([data-theme=dark]){--cirth-muted-color:oklch(80% .02 35);--cirth-muted-border-color:oklch(57% .02 35);--cirth-card-border-color:var(--cirth-muted-border-color);--cirth-primary:oklch(80% .1 35);--cirth-primary-hover:oklch(85% .08 35);--cirth-primary-underline:var(--cirth-primary);--cirth-primary-focus:oklch(68% .16 35);--cirth-link-visited-color:oklch(80% .03 35)}}:root,:host{--cirth-border-radius:var(--cirth-radius-2xl);--cirth-font-family:"Trebuchet MS", "Segoe UI", Verdana, sans-serif, var(--cirth-font-family-emoji);--cirth-font-family-display:var(--cirth-font-family);--cirth-spacing:var(--cirth-space-5);--cirth-transition:var(--cirth-duration-slow) cubic-bezier(.34, 1.56, .64, 1)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cirthcss/cirth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Semantic-first CSS framework for production-ready interfaces",
|
|
5
5
|
"author": "Riccardo Pastori",
|
|
6
6
|
"main": "dist/cirth.min.css",
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"scripts": {
|
|
53
53
|
"build": "node scripts/build.js",
|
|
54
54
|
"check:a11y": "node scripts/check-a11y.js",
|
|
55
|
+
"check:browserslist": "node scripts/check-browserslist.js",
|
|
55
56
|
"check:behavior": "playwright test --config=playwright.behavior.config.js",
|
|
56
57
|
"check:dist": "node scripts/check-dist.js",
|
|
57
58
|
"check:variables": "node scripts/check-css-variables.js",
|
|
@@ -63,9 +64,10 @@
|
|
|
63
64
|
"check:visual:update": "playwright test --update-snapshots",
|
|
64
65
|
"dev": "node scripts/watch.js",
|
|
65
66
|
"format": "prettier --write --log-level silent 'src/**/*.scss'",
|
|
66
|
-
"lint": "stylelint 'src/**/*.scss' && node scripts/check-css-variables.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check && tsc --noEmit",
|
|
67
|
-
"lint:fix": "stylelint 'src/**/*.scss' --fix && node scripts/check-css-variables.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check",
|
|
67
|
+
"lint": "stylelint 'src/**/*.scss' && node scripts/check-css-variables.js && node scripts/check-browserslist.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check && tsc --noEmit",
|
|
68
|
+
"lint:fix": "stylelint 'src/**/*.scss' --fix && node scripts/check-css-variables.js && node scripts/check-browserslist.js && node scripts/check-doc-links.js && node scripts/update-sri.js --check",
|
|
68
69
|
"sri": "node scripts/update-sri.js",
|
|
70
|
+
"docs:archive": "node scripts/archive-docs.js",
|
|
69
71
|
"docs:assets": "node scripts/build-docs.js",
|
|
70
72
|
"docs:dev": "npm run docs:assets && eleventy --config=docs/eleventy.config.js --serve",
|
|
71
73
|
"docs:build": "npm run docs:assets && eleventy --config=docs/eleventy.config.js"
|
|
@@ -89,10 +91,15 @@
|
|
|
89
91
|
"typescript": "^7.0.2"
|
|
90
92
|
},
|
|
91
93
|
"browserslist": [
|
|
92
|
-
"Chrome >=
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
94
|
+
"Chrome >= 123",
|
|
95
|
+
"ChromeAndroid >= 123",
|
|
96
|
+
"Edge >= 123",
|
|
97
|
+
"Firefox >= 130",
|
|
98
|
+
"FirefoxAndroid >= 130",
|
|
99
|
+
"iOS >= 18.2",
|
|
100
|
+
"Opera >= 109",
|
|
101
|
+
"OperaMobile >= 73",
|
|
102
|
+
"Safari >= 18.2",
|
|
103
|
+
"Samsung >= 27"
|
|
97
104
|
]
|
|
98
105
|
}
|