feat(web): add the calm redesign as a sidebar switch
The redesign proposed after the anti-slop audit (anti-slop/audit-001) is now an opt-in design layer. The "New design" switch at the bottom of the sidebar sets data-design="calm" on <html> and remembers it; theme-init.js applies the stored choice before the first paint. The classic look stays the default and is unchanged. styles/calm.css, scoped to that attribute, keeps the Hive DS colors and: bundles Hanken Grotesk and JetBrains Mono (@fontsource-variable, OFL-1.1); uses three radii (6 / 10 / 14 px); drops the honeycomb wallpaper, gradient fills, glass, glows and pulsing dots; keeps shadows only on menus and dialogs; shows labels as written instead of tracked capitals; and marks the active sidebar item with fill, a 1px line and weight instead of a stripe. Screen layouts are unchanged.
This commit is contained in:
20
package-lock.json
generated
20
package-lock.json
generated
@@ -56,6 +56,8 @@
|
||||
"dependencies": {
|
||||
"@clerk/clerk-react": "^5.61.8",
|
||||
"@clerk/themes": "^2.4.57",
|
||||
"@fontsource-variable/hanken-grotesk": "^5.3.0",
|
||||
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
||||
"@hookform/resolvers": "^3.10.0",
|
||||
"@radix-ui/react-accordion": "^1.2.11",
|
||||
"@radix-ui/react-alert-dialog": "^1.1.14",
|
||||
@@ -3141,6 +3143,24 @@
|
||||
"integrity": "sha512-RiB/yIh78pcIxl6lLMG0CgBXAZ2Y0eVHqMPYugu+9U0AeT6YBeiJpf7lbdJNIugFP5SIjwNRgo4DhR1Qxi26Gg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@fontsource-variable/hanken-grotesk": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/hanken-grotesk/-/hanken-grotesk-5.3.0.tgz",
|
||||
"integrity": "sha512-DOd0FqL+3cH2dfNy0JtSq9tUfxBz5mLmHMjTU0DOr3E9Zo6wxuatCl53DIPNrSPgCsnuKyM739BTIG5glCLirw==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@fontsource-variable/jetbrains-mono": {
|
||||
"version": "5.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@fontsource-variable/jetbrains-mono/-/jetbrains-mono-5.3.0.tgz",
|
||||
"integrity": "sha512-F32xpS2NsGYoQi2ADSkKTgpJj7ozajsGgDJ8woTnqjmIB+dxDIqImjl4pXZVEExu8UFZ2ndhmX18EBS/hdz3Lw==",
|
||||
"license": "OFL-1.1",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ayuhito"
|
||||
}
|
||||
},
|
||||
"node_modules/@formatjs/icu-messageformat-parser": {
|
||||
"version": "3.5.16",
|
||||
"resolved": "https://registry.npmjs.org/@formatjs/icu-messageformat-parser/-/icu-messageformat-parser-3.5.16.tgz",
|
||||
|
||||
Reference in New Issue
Block a user