From bbdb80f045cd60278cfa1fde49672c3741af41fd Mon Sep 17 00:00:00 2001 From: Liu Date: Wed, 14 Oct 2026 23:03:38 +0800 Subject: [PATCH] feat(styles): centralize widget styles in the nova default theme Manage all built-in widget styles in one stylesheet. `nova` is the default theme; further themes will be added under src/styles. --- package-lock.json | 922 +++++++++++++++++++++++++++++++++++- package.json | 12 +- postcss.config.js | 18 + src/lcui_widgets.c | 8 + src/styles/style-nova.css | 736 ++++++++++++++++++++++++++++ src/styles/style-nova.css.h | 901 +++++++++++++++++++++++++++++++++++ tailwind.config.js | 52 ++ 7 files changed, 2645 insertions(+), 4 deletions(-) create mode 100644 postcss.config.js create mode 100644 src/styles/style-nova.css create mode 100644 src/styles/style-nova.css.h create mode 100644 tailwind.config.js diff --git a/package-lock.json b/package-lock.json index 1dedf715..439d98c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,9 +9,115 @@ "version": "3.0.0-alpha.0", "license": "MIT", "devDependencies": { + "@thedutchcoder/postcss-rem-to-px": "^0.0.2", "clang-format-node": "^3.0.6", "husky": "^9.1.7", - "lint-staged": "^15.2.10" + "lint-staged": "^15.2.10", + "postcss": "^8.5.28", + "tailwindcss": "^3.4.17" + } + }, + "node_modules/@alloc/quick-lru": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.3.0.tgz", + "integrity": "sha512-U4+70Pc5ZS9osnCBCE5Jha/ciHM+Yp+CNMNC/7HvYbNRk1Ldd+f7qO65W5qfhu/TCv+/ozljlXXe9Nj8419DMA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.6.0.tgz", + "integrity": "sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@thedutchcoder/postcss-rem-to-px": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/@thedutchcoder/postcss-rem-to-px/-/postcss-rem-to-px-0.0.2.tgz", + "integrity": "sha512-M2T3bJSTgLtZF8+KDYDtSDAFGuTlaxYfitpjkmNswnfJ8AjbQ/g7NC+bqgAAViYWFV9I3tdrQuQ3Bu8j7GrjwA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "postcss": "^8.3.0" } }, "node_modules/ansi-escapes": { @@ -56,6 +162,47 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/any-promise": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", + "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==", + "dev": true, + "license": "MIT" + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "5.0.2", + "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz", + "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==", + "dev": true, + "license": "MIT" + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmmirror.com/braces/-/braces-3.0.3.tgz", @@ -69,6 +216,16 @@ "node": ">=8" } }, + "node_modules/camelcase-css": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz", + "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/chalk": { "version": "5.6.2", "resolved": "https://registry.npmmirror.com/chalk/-/chalk-5.6.2.tgz", @@ -82,6 +239,44 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chokidar/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/clang-format-node": { "version": "3.0.6", "resolved": "https://registry.npmmirror.com/clang-format-node/-/clang-format-node-3.0.6.tgz", @@ -165,6 +360,19 @@ "node": ">= 8" } }, + "node_modules/cssesc": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz", + "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==", + "dev": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/debug": { "version": "4.4.3", "resolved": "https://registry.npmmirror.com/debug/-/debug-4.4.3.tgz", @@ -183,6 +391,20 @@ } } }, + "node_modules/didyoumean": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz", + "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/dlv": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz", + "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==", + "dev": true, + "license": "MIT" + }, "node_modules/emoji-regex": { "version": "10.6.0", "resolved": "https://registry.npmmirror.com/emoji-regex/-/emoji-regex-10.6.0.tgz", @@ -203,6 +425,16 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/eventemitter3": { "version": "5.0.4", "resolved": "https://registry.npmmirror.com/eventemitter3/-/eventemitter3-5.0.4.tgz", @@ -234,6 +466,46 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fastq": { + "version": "1.20.3", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.20.3.tgz", + "integrity": "sha512-XKv5nnLs6nLF71NgiKJLIZFLkPyIEuOselLG7ujZnGrRfQK8HpvY+WqKhAJUAdLomwVHErVS4LfxFlPq0/FTAw==", + "dev": true, + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmmirror.com/fill-range/-/fill-range-7.1.1.tgz", @@ -247,6 +519,31 @@ "node": ">=8" } }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/get-east-asian-width": { "version": "1.6.0", "resolved": "https://registry.npmmirror.com/get-east-asian-width/-/get-east-asian-width-1.6.0.tgz", @@ -273,6 +570,32 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/hasown": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.4.tgz", + "integrity": "sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/human-signals": { "version": "5.0.0", "resolved": "https://registry.npmmirror.com/human-signals/-/human-signals-5.0.0.tgz", @@ -299,6 +622,45 @@ "url": "https://github.com/sponsors/typicode" } }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-core-module": { + "version": "2.17.0", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.17.0.tgz", + "integrity": "sha512-J/vG0zBCbIKOQFfufSwyXdMrsohyJIUNkrnmo6WZGzoM7tr/lsbfW5b2BvisL6zsyMzK9UxV9L6c7AoFbyXHOA==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-fullwidth-code-point": { "version": "4.0.0", "resolved": "https://registry.npmmirror.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz", @@ -312,6 +674,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmmirror.com/is-number/-/is-number-7.0.0.tgz", @@ -342,6 +717,16 @@ "dev": true, "license": "ISC" }, + "node_modules/jiti": { + "version": "1.21.7", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz", + "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "bin/jiti.js" + } + }, "node_modules/lilconfig": { "version": "3.1.3", "resolved": "https://registry.npmmirror.com/lilconfig/-/lilconfig-3.1.3.tgz", @@ -355,6 +740,13 @@ "url": "https://github.com/sponsors/antonk52" } }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, "node_modules/lint-staged": { "version": "15.5.2", "resolved": "https://registry.npmmirror.com/lint-staged/-/lint-staged-15.5.2.tgz", @@ -461,6 +853,16 @@ "dev": true, "license": "MIT" }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, "node_modules/micromatch": { "version": "4.0.8", "resolved": "https://registry.npmmirror.com/micromatch/-/micromatch-4.0.8.tgz", @@ -508,6 +910,47 @@ "dev": true, "license": "MIT" }, + "node_modules/mz": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz", + "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0", + "object-assign": "^4.0.1", + "thenify-all": "^1.0.0" + } + }, + "node_modules/nanoid": { + "version": "3.3.19", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", + "integrity": "sha512-Y2tUNy4ouw6tq5oDSKeQYGOyhkUBhNOcGV/02KC+6kd9eDGqdZd++mjMiIDilrBYvjEnCYvVtsuHCuP+okSfug==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/npm-run-path": { "version": "5.3.0", "resolved": "https://registry.npmmirror.com/npm-run-path/-/npm-run-path-5.3.0.tgz", @@ -537,6 +980,26 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-hash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz", + "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, "node_modules/onetime": { "version": "6.0.0", "resolved": "https://registry.npmmirror.com/onetime/-/onetime-6.0.0.tgz", @@ -563,6 +1026,20 @@ "node": ">=8" } }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, "node_modules/picomatch": { "version": "2.3.2", "resolved": "https://registry.npmmirror.com/picomatch/-/picomatch-2.3.2.tgz", @@ -589,6 +1066,235 @@ "node": ">=0.10" } }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/postcss": { + "version": "8.5.28", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz", + "integrity": "sha512-RRuzqDtt5Y9h3quz5hWhK+TPnsmVs6WwSU6LkJMeY4HstUEDuYTG8UJSdawMRzmzAtV+KEoG8N3Qg2qLy5vM/A==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.18", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/postcss-import": { + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz", + "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==", + "dev": true, + "license": "MIT", + "dependencies": { + "postcss-value-parser": "^4.0.0", + "read-cache": "^1.0.0", + "resolve": "^1.1.7" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "postcss": "^8.0.0" + } + }, + "node_modules/postcss-js": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz", + "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "camelcase-css": "^2.0.1" + }, + "engines": { + "node": "^12 || ^14 || >= 16" + }, + "peerDependencies": { + "postcss": "^8.4.21" + } + }, + "node_modules/postcss-load-config": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.2.tgz", + "integrity": "sha512-bSVhyJGL00wMVoPUzAVAnbEoWyqRxkjv64tUl427SKnPrENtq6hJwUojroMz2VB+Q1edmi4IfrAPpami5VVgMQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "lilconfig": "^3.0.0", + "yaml": "^2.3.4" + }, + "engines": { + "node": ">= 14" + }, + "peerDependencies": { + "postcss": ">=8.0.9", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "postcss": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/postcss-nested": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz", + "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "postcss-selector-parser": "^6.1.1" + }, + "engines": { + "node": ">=12.0" + }, + "peerDependencies": { + "postcss": "^8.2.14" + } + }, + "node_modules/postcss-selector-parser": { + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.4.tgz", + "integrity": "sha512-bIoJLOmjCO1S9XdY/DcnR5hJxvrDir1PbGChrzXG3vw0/FOliy/fA3dmdhQ441kah4gKv+TwckGzex6wNS5cnQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/read-cache": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.2.tgz", + "integrity": "sha512-/peqiBB/n07gQGLsWaHho3WfvUyRscw0gYTsEFMhrIe/nWLkYaf5SbKYjGYqtRV3aPwykJgF2VEMo1ac4bnsGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.12", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.12.tgz", + "integrity": "sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==", + "dev": true, + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "is-core-module": "^2.16.1", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/restore-cursor": { "version": "5.1.0", "resolved": "https://registry.npmmirror.com/restore-cursor/-/restore-cursor-5.1.0.tgz", @@ -622,6 +1328,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, "node_modules/rfdc": { "version": "1.4.1", "resolved": "https://registry.npmmirror.com/rfdc/-/rfdc-1.4.1.tgz", @@ -629,6 +1346,30 @@ "dev": true, "license": "MIT" }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmmirror.com/shebang-command/-/shebang-command-2.0.0.tgz", @@ -682,6 +1423,16 @@ "url": "https://github.com/chalk/slice-ansi?sponsor=1" } }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/string-argv": { "version": "0.3.2", "resolved": "https://registry.npmmirror.com/string-argv/-/string-argv-0.3.2.tgz", @@ -739,6 +1490,161 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/sucrase": { + "version": "3.35.1", + "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.1.tgz", + "integrity": "sha512-DhuTmvZWux4H1UOnWMB3sk0sbaCVOoQZjv8u1rDoTV0HTdGem9hkAZtl4JZy8P2z4Bg0nT+YMeOFyVr4zcG5Tw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.2", + "commander": "^4.0.0", + "lines-and-columns": "^1.1.6", + "mz": "^2.7.0", + "pirates": "^4.0.1", + "tinyglobby": "^0.2.11", + "ts-interface-checker": "^0.1.9" + }, + "bin": { + "sucrase": "bin/sucrase", + "sucrase-node": "bin/sucrase-node" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/sucrase/node_modules/commander": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", + "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/tailwindcss": { + "version": "3.4.17", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.17.tgz", + "integrity": "sha512-w33E2aCvSDP0tW9RZuNXadXlkHXqFzSkQew/aIa2i/Sj8fThxwovwlXHSPXTbAHwEIhBFXAedUhP2tueAKP8Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@alloc/quick-lru": "^5.2.0", + "arg": "^5.0.2", + "chokidar": "^3.6.0", + "didyoumean": "^1.2.2", + "dlv": "^1.1.3", + "fast-glob": "^3.3.2", + "glob-parent": "^6.0.2", + "is-glob": "^4.0.3", + "jiti": "^1.21.6", + "lilconfig": "^3.1.3", + "micromatch": "^4.0.8", + "normalize-path": "^3.0.0", + "object-hash": "^3.0.0", + "picocolors": "^1.1.1", + "postcss": "^8.4.47", + "postcss-import": "^15.1.0", + "postcss-js": "^4.0.1", + "postcss-load-config": "^4.0.2", + "postcss-nested": "^6.2.0", + "postcss-selector-parser": "^6.1.2", + "resolve": "^1.22.8", + "sucrase": "^3.35.0" + }, + "bin": { + "tailwind": "lib/cli.js", + "tailwindcss": "lib/cli.js" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/thenify": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz", + "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==", + "dev": true, + "license": "MIT", + "dependencies": { + "any-promise": "^1.0.0" + } + }, + "node_modules/thenify-all": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz", + "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "thenify": ">= 3.1.0 < 4" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.17", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", + "integrity": "sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tinyglobby/node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/tinyglobby/node_modules/picomatch": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmmirror.com/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -752,6 +1658,20 @@ "node": ">=8.0" } }, + "node_modules/ts-interface-checker": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz", + "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==", + "dev": true, + "license": "Apache-2.0" + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "dev": true, + "license": "MIT" + }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmmirror.com/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index 6816a00c..8d5623b4 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,9 @@ "update-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "update-copyright": "node scripts/add-copyright.js", "format:check": "node scripts/clang-format-changed.js", + "build-styles": "lcui build src/styles/style-nova.css --force --skip-xmake", + "doc-viewer:compile-docs": "cd examples/doc-viewer && npm run compile", + "doc-viewer:compile-tsx": "cd examples/doc-viewer && lcui build --skip-xmake", "prepare": "husky" }, "lint-staged": { @@ -19,11 +22,14 @@ "clang-format -i" ] }, - "devDependencies": { + "devDependencies": { + "@thedutchcoder/postcss-rem-to-px": "^0.0.2", "clang-format-node": "^3.0.6", "husky": "^9.1.7", - "lint-staged": "^15.2.10" - }, + "lint-staged": "^15.2.10", + "postcss": "^8.5.28", + "tailwindcss": "^3.4.17" + }, "repository": { "type": "git", "url": "git+https://github.com/lc-soft/LCUI.git" diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 00000000..ea79073c --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,18 @@ +const formatLcuiCss = { + postcssPlugin: "format-lcui-css", + OnceExit(root) { + root.raws.after = "\n"; + root.each((node) => { + node.raws.before = "\n"; + node.raws.after = "\n"; + }); + }, +}; + +module.exports = { + plugins: [ + require("tailwindcss"), + require("@thedutchcoder/postcss-rem-to-px"), + formatLcuiCss, + ], +}; \ No newline at end of file diff --git a/src/lcui_widgets.c b/src/lcui_widgets.c index 1d0cb025..d579b37b 100644 --- a/src/lcui_widgets.c +++ b/src/lcui_widgets.c @@ -10,8 +10,11 @@ */ #include +#include #include +#include "styles/style-nova.css.h" + void lcui_widgets_init(void) { ui_register_portal(); @@ -48,6 +51,11 @@ void lcui_widgets_init(void) ui_register_empty(); ui_register_dialog(); ui_register_alert_dialog(); + + /* The theme layer loads last so its rules win over each widget's own + * default CSS at equal specificity, letting style-nova.css refine the + * look without editing the widget sources. */ + ui_load_css_string_style_nova_chunks(); } void lcui_widgets_destroy(void) diff --git a/src/styles/style-nova.css b/src/styles/style-nova.css new file mode 100644 index 00000000..89409c85 --- /dev/null +++ b/src/styles/style-nova.css @@ -0,0 +1,736 @@ +* { + @apply border-border; + font-family: "Noto Sans SC", sans-serif; +} + +a { + cursor: pointer; +} + +button { + cursor: pointer; + box-sizing: border-box; + @apply inline-flex items-center gap-1.5 text-center rounded-lg border border-border bg-background px-2.5 py-[5px] text-sm font-medium text-foreground; +} + +button:hover { + @apply bg-muted text-foreground; +} + +button:outline { + @apply border-border bg-background text-foreground; +} + +button:outline:hover { + @apply bg-muted text-foreground; +} + +button:primary { + @apply border-transparent bg-primary text-primary-foreground; +} + +button:primary:hover { + @apply bg-neutral-600 text-primary-foreground; +} + +button:secondary { + @apply border-secondary bg-secondary text-secondary-foreground; +} + +button:secondary:hover { + @apply bg-neutral-200 text-secondary-foreground; +} + +button:ghost { + @apply border-transparent bg-transparent text-foreground; +} + +button:ghost:hover { + @apply bg-muted text-foreground; +} + +button:destructive { + @apply border-transparent bg-destructive-muted text-destructive; +} + +button:destructive:hover { + @apply bg-red-100 text-destructive; +} + +button:link { + @apply border-transparent bg-transparent text-primary; +} + +button:link:hover { + @apply bg-transparent text-primary; +} + +button:link, +button:link text { + @apply underline-offset-4; +} + +button:link:hover, +button:link:hover text { + @apply underline; +} + +button:xs { + @apply gap-1 rounded-[6px] px-2 py-[3px] text-xs; +} + +button:sm { + @apply rounded-[6px] px-2 py-[5px] text-xs; +} + +button:lg { + @apply py-[5px] text-base; +} + +button:icon { + @apply justify-center h-8 w-8 p-0; +} + +button:icon-xs { + @apply justify-center h-6 w-6 rounded-[6px] p-0 text-xs; +} + +button:icon-sm { + @apply justify-center h-7 w-7 rounded-[6px] p-0 text-xs; +} + +button:icon-lg { + @apply justify-center h-9 w-9 p-0; +} + +button:disabled { + @apply opacity-50 pointer-events-none; +} + +button:active { + @apply relative top-px bg-neutral-300; +} + +button:outline:active { + @apply bg-neutral-300; +} + +button:primary:active { + @apply bg-neutral-700 text-primary-foreground; +} + +button:secondary:active { + @apply bg-neutral-300 text-secondary-foreground; +} + +button:ghost:active { + @apply bg-neutral-200 text-foreground; +} + +button:destructive:active { + @apply bg-red-200 text-destructive; +} + +button:link:active { + @apply bg-transparent text-primary underline; +} + +button .fui-icon { + @apply text-base; +} + +button text { + @apply text-sm; +} + +button:xs text, +button:icon-xs text { + @apply text-xs; +} + +button:sm text, +button:icon-sm text { + @apply text-xs; +} + +button:lg text, +button:icon-lg text { + @apply text-base; +} + +button:xs .fui-icon, +button:icon-xs .fui-icon { + @apply text-xs; +} + +button:sm .fui-icon, +button:icon-sm .fui-icon { + @apply text-sm; +} + +button:lg .fui-icon, +button:icon-lg .fui-icon { + @apply text-base; +} + +badge { + box-sizing: border-box; + @apply inline-flex items-center gap-1 h-5 rounded-full border border-primary bg-primary px-2 text-xs font-medium leading-[18px] text-primary-foreground; +} + +badge icon { + @apply text-xs leading-none; +} + +badge:secondary { + @apply border-secondary bg-secondary text-secondary-foreground; +} + +badge:destructive { + @apply border-destructive-muted bg-destructive-muted text-destructive; +} + +badge:outline { + @apply border-border bg-transparent text-foreground; +} + +badge:ghost { + @apply border-transparent bg-transparent text-foreground; +} + +badge:disabled { + @apply opacity-50; +} + +.badge-color-blue { + @apply border-blue-100 bg-blue-50 text-blue-700; +} + +.badge-color-green { + @apply border-green-100 bg-green-50 text-green-700; +} + +.badge-color-sky { + @apply border-sky-100 bg-sky-50 text-sky-700; +} + +.badge-color-purple { + @apply border-purple-100 bg-purple-50 text-purple-700; +} + +.badge-color-red { + @apply border-red-100 bg-red-50 text-red-700; +} + +alert { + @apply flex items-start gap-2 text-sm px-2.5 py-2 bg-card text-card-foreground rounded-lg border; +} + +alert icon { + margin-top: 2px; + font-size: 16px; +} + +alert-content { + @apply flex flex-1 flex-col gap-0.5; +} + +alert-title { + @apply block font-medium; +} + +alert-description { + @apply block text-muted-foreground; +} + +alert-action { + @apply ml-auto flex; +} + +alert:success { + @apply border-green-200 bg-green-50 text-green-800; +} + +alert:warning { + @apply border-yellow-300 bg-yellow-50 text-yellow-900; +} + +alert:destructive { + @apply text-destructive; +} +alert:destructive alert-description { + @apply text-destructive/90; +} + +empty { + @apply flex flex-col items-center gap-4 rounded-xl p-6 text-center; +} + +empty-header { + @apply flex flex-col items-center gap-2; +} + +empty-media { + @apply mb-2; +} + +empty-media:icon { + @apply flex h-8 w-8 items-center justify-center rounded-lg bg-muted text-foreground; +} + +empty-title { + @apply block text-sm font-medium; +} + +empty-description { + @apply block text-sm leading-relaxed text-muted-foreground; +} + +empty-content { + @apply flex flex-col gap-2.5 text-sm; +} + +empty-action { + @apply flex flex-row justify-center gap-2; +} + +item { + @apply flex items-center gap-2.5 rounded-lg border border-transparent px-3 py-2.5 text-sm; +} + +item:sm { + @apply gap-2.5 px-3 py-2.5; +} + +item:xs { + @apply gap-2 px-2.5 py-2; +} + +item:outline { + @apply border-border; +} + +item:muted { + @apply border-transparent bg-muted/50; +} + +item-content { + @apply flex flex-1 flex-col gap-1; +} + +item:xs item-content { + @apply gap-0; +} + +item-media, +item-actions { + @apply flex; +} + +item-media { + @apply gap-2; +} + +item-media:icon { + @apply flex items-center justify-center; + font-size: 16px; +} + +item-media:image { + @apply h-10 w-10 rounded-sm; +} + +item:sm item-media:image { + @apply h-8 w-8; +} + +item:xs item-media:image { + @apply h-6 w-6; +} + +item-title { + @apply block text-sm font-medium leading-snug; +} + +item-description { + @apply block text-sm leading-normal text-muted-foreground; +} + +item:xs item-description { + @apply text-xs; +} + +item:interactive:hover { + @apply bg-neutral-100; +} + +item:interactive:active { + @apply bg-neutral-200; +} + +item:disabled { + @apply opacity-50; +} + +/* progress: structural rules live in src/widgets/progress.c */ + +progress { + @apply flex gap-3 w-full; + flex-wrap: wrap; +} + +progress-track { + @apply w-full h-1 rounded-full bg-muted; +} + +progress-indicator { + @apply h-full rounded-full bg-primary; +} + +progress-label { + @apply text-sm font-medium; +} + +progress-value { + @apply text-sm text-muted-foreground ml-auto; +} + +/* radio-group: structural rules live in src/widgets/radio_group.c */ + +radio-group { + @apply flex flex-col items-stretch gap-2; +} + +radio-group-item:checked { + @apply border-primary bg-primary; +} + +radio-group-item .indicator { + @apply bg-primary-foreground; +} + +radio-group-item:disabled { + @apply opacity-50; + cursor: not-allowed; +} + +/* dialog / alert-dialog: structural rules (display, positioning, layout) live + * in src/widgets/dialog.c; keep only visual refinements here. */ + +dialog-overlay, +alert-dialog-overlay { + background-color: rgba(0, 0, 0, 0.1); +} + +dialog-content, +alert-dialog-content { + @apply p-4 rounded-xl bg-popover text-popover-foreground; + border: 1px solid #e5e5e5; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); + font-size: 14px; +} + +dialog-footer, +alert-dialog-footer { + @apply bg-muted/50 -mx-4 -mb-4 rounded-b-xl border-t p-4; +} + +dialog-title, +alert-dialog-title { + @apply font-medium; + font-size: 16px; + line-height: 1; +} + +dialog-description, +alert-dialog-description { + @apply text-sm text-muted-foreground; +} + +alert-dialog-content:sm alert-dialog-header { + @apply text-center; +} + +alert-dialog-media { + @apply rounded-md bg-muted; +} + +alert-dialog-cancel, +alert-dialog-action { + @apply inline-flex items-center gap-1.5 text-center rounded-lg border border-border bg-background px-2.5 py-[5px] text-sm font-medium text-foreground; +} + +alert-dialog-cancel:hover, +alert-dialog-action:hover { + @apply bg-muted text-foreground; +} + +alert-dialog-action:primary { + @apply border-transparent bg-primary text-primary-foreground; +} + +alert-dialog-action:primary:hover { + @apply bg-neutral-600 text-primary-foreground; +} + +alert-dialog-action:destructive { + @apply border-transparent bg-destructive-muted text-destructive; +} + +alert-dialog-action:destructive:hover { + @apply bg-red-100 text-destructive; +} + +alert-dialog-content:sm { + max-width: 320px; +} + +/* select: structural rules live in src/widgets/select.c; visual refinements + * follow the shadcn "nova" base style here. The trigger reuses the shared + * `button` rule as-is so it keeps the same metrics as sibling buttons; + * shadcn's data attribute, focus-visible, ring and animation variants that + * LCUI cannot express are approximated with :hover/:focus, plain :disabled + * rules and a hand-written box-shadow. */ + +select-arrow { + @apply text-muted-foreground; +} + +select-value { + white-space: nowrap; + @apply font-normal; +} + +select-arrow.fui-icon { + line-height: 1; +} + +select-content { + @apply border border-border bg-popover p-1 rounded-lg text-popover-foreground; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +select-label { + @apply text-muted-foreground px-1.5 py-1 text-xs; +} + +select-separator { + @apply bg-border my-1; + height: 1px; +} + +select-item { + @apply rounded-md gap-1.5 py-1 pl-1.5 pr-8 text-sm; + cursor: pointer; + white-space: nowrap; +} + +select-item:hover { + @apply bg-muted text-foreground; +} + +select-item:active { + @apply bg-neutral-200; +} + +select-item:checked { + @apply bg-muted text-foreground; +} + +select-item:highlighted { + @apply bg-muted text-foreground; +} + +select-item .select-item-indicator { + position: absolute; + right: 8px; + top: 4px; + font-size: 16px; + line-height: 20px; + display: none; +} + +select-item:checked .select-item-indicator { + display: block; +} + +select:disabled button, +select:disabled button:hover, +select:disabled button:active, +select-item:disabled, +select-item:disabled:hover { + @apply opacity-50; + cursor: not-allowed; +} + +select-item:disabled:hover, +select-item:disabled:active { + background-color: transparent; +} + +select:disabled button { + pointer-events: none; +} + +select:disabled select-trigger { + cursor: not-allowed; +} + +/* checkbox: structural rules live in src/widgets/checkbox.c */ + +checkbox { + @apply rounded-[4px] border border-border; + cursor: pointer; + font-size: 14px; +} + +checkbox:checked, +checkbox:indeterminate { + @apply border-primary bg-primary text-primary-foreground; +} + +checkbox:disabled { + @apply opacity-50; + cursor: not-allowed; +} + +/* field family: structural rules live in src/widgets/field.c */ + +field { + @apply gap-2; +} + +field-set { + /* Spacing between the set's children is provided by their own margins (the + * legend must stay tight to the text below it, which a flex gap cannot + * express since LCUI has no special layout). */ + @apply gap-0; +} + +field-set field-group { + @apply mt-3; +} + +field-group { + @apply gap-5; +} + +field-group field-group { + @apply gap-4 mt-0; +} + +field-set.has-radio-group radio-group { + @apply mt-3; +} + +field-legend { + @apply text-base font-medium; +} + +field-label { + @apply gap-2 text-sm font-medium; + line-height: 1.375; +} + +field-content { + @apply gap-0.5; + line-height: 1.375; +} + +field-title { + @apply text-sm font-medium; + line-height: 1.375; +} + +field-description { + @apply text-sm font-normal text-muted-foreground; + line-height: 1.5; + text-align: left; +} + +field-separator { + height: 1px; + background-color: #e5e5e5; + margin: 0; +} + +field-label.has-field { + @apply rounded-lg border border-border; + padding: 10px; +} + +/* Workaround: the renderer clips children to the parent's padding box, so a + * control's focus ring (3px) is clipped at every ancestor. A matching padding + * and negative margin keeps the content in place while giving the ring room. + * Apply `.clip-safe` to any other container that needs the same gutter. */ +.clip-safe, +field, +field-group, +field-set { + box-sizing: border-box; + padding: 4px; + margin: -4px; +} + +/* Vertical fields make their controls fill the field width (that mirrors the + * `*:w-full` shadcn applies to vertical fields). Flex stretch already widens + * block-level children; composite controls need their inner trigger widened + * too. Horizontal fields keep intrinsic widths, like shadcn's w-auto. */ +field select { + width: 100%; +} + +field select-trigger { + display: block; +} + +field select-trigger button { + width: 100%; + min-width: 0; +} + +field:horizontal select { + width: auto; +} + +field:horizontal select-trigger { + display: inline-block; +} + +field-label.has-field:hover { + background-color: rgba(245, 245, 245, 0.5); +} + +field-label.has-checked { + background-color: rgba(34, 34, 34, 0.05); + border-color: rgba(34, 34, 34, 0.3); +} + +field:disabled, +field-set:disabled, +field-legend:disabled, +field-group:disabled, +field-label:disabled, +field-description:disabled, +field-content:disabled, +field-title:disabled, +field-separator:disabled { + @apply opacity-50; +} + +/* textinput: structural rules live in src/widgets/textinput.c; the visual + * style is applied here (like shadcn's input). */ + +textinput { + @apply h-8 rounded-lg border border-border bg-background px-2.5 py-1 text-sm text-foreground; + box-sizing: border-box; +} + +textinput:focus { + @apply border-foreground; + box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1); +} + +textinput:disabled { + @apply opacity-50; +} diff --git a/src/styles/style-nova.css.h b/src/styles/style-nova.css.h new file mode 100644 index 00000000..ae668243 --- /dev/null +++ b/src/styles/style-nova.css.h @@ -0,0 +1,901 @@ +/** Generated from: style-nova.css */ +#include +#include +#include +static const struct { + const char *chunk; + size_t length; +} css_str_style_nova_chunks[] = { + { "\n", 1 }, + { "* {\n", 4 }, + { " border-color: #e5e5e5;\n", 25 }, + { " font-family: \"Noto Sans SC\", sans-serif;\n", 43 }, + { "}\n", 2 }, + { "a {\n", 4 }, + { " cursor: pointer;\n", 19 }, + { "}\n", 2 }, + { "button {\n", 9 }, + { " cursor: pointer;\n", 19 }, + { " box-sizing: border-box;\n", 26 }, + { " display: inline-flex;\n", 24 }, + { " align-items: center;\n", 23 }, + { " gap: 6px;\n", 12 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: #fff;\n", 26 }, + { " padding-left: 10px;\n", 22 }, + { " padding-right: 10px;\n", 23 }, + { " padding-top: 5px;\n", 20 }, + { " padding-bottom: 5px;\n", 23 }, + { " text-align: center;\n", 22 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:hover {\n", 15 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:outline {\n", 17 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: #fff;\n", 26 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:outline:hover {\n", 23 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:primary {\n", 17 }, + { " border-color: transparent;\n", 29 }, + { " background-color: #222222;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "button:primary:hover {\n", 23 }, + { " background-color: #525252;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "button:secondary {\n", 19 }, + { " border-color: #f5f5f5;\n", 25 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "button:secondary:hover {\n", 25 }, + { " background-color: #e5e5e5;\n", 29 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "button:ghost {\n", 15 }, + { " border-color: transparent;\n", 29 }, + { " background-color: transparent;\n", 33 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:ghost:hover {\n", 21 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:destructive {\n", 21 }, + { " border-color: transparent;\n", 29 }, + { " background-color: #ffe8e9;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "button:destructive:hover {\n", 27 }, + { " background-color: #fee2e2;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "button:link {\n", 14 }, + { " border-color: transparent;\n", 29 }, + { " background-color: transparent;\n", 33 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "button:link:hover {\n", 20 }, + { " background-color: transparent;\n", 33 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "button:link,\n", 13 }, + { "button:link text {\n", 19 }, + { " text-underline-offset: 4px;\n", 30 }, + { "}\n", 2 }, + { "button:link:hover,\n", 19 }, + { "button:link:hover text {\n", 25 }, + { " text-decoration-line: underline;\n", 35 }, + { "}\n", 2 }, + { "button:xs {\n", 12 }, + { " gap: 4px;\n", 12 }, + { " border-radius: 6px;\n", 22 }, + { " padding-left: 8px;\n", 21 }, + { " padding-right: 8px;\n", 22 }, + { " padding-top: 3px;\n", 20 }, + { " padding-bottom: 3px;\n", 23 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:sm {\n", 12 }, + { " border-radius: 6px;\n", 22 }, + { " padding-left: 8px;\n", 21 }, + { " padding-right: 8px;\n", 22 }, + { " padding-top: 5px;\n", 20 }, + { " padding-bottom: 5px;\n", 23 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:lg {\n", 12 }, + { " padding-top: 5px;\n", 20 }, + { " padding-bottom: 5px;\n", 23 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 24px;\n", 21 }, + { "}\n", 2 }, + { "button:icon {\n", 14 }, + { " height: 32px;\n", 16 }, + { " width: 32px;\n", 15 }, + { " justify-content: center;\n", 27 }, + { " padding: 0px;\n", 16 }, + { "}\n", 2 }, + { "button:icon-xs {\n", 17 }, + { " height: 24px;\n", 16 }, + { " width: 24px;\n", 15 }, + { " justify-content: center;\n", 27 }, + { " border-radius: 6px;\n", 22 }, + { " padding: 0px;\n", 16 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:icon-sm {\n", 17 }, + { " height: 28px;\n", 16 }, + { " width: 28px;\n", 15 }, + { " justify-content: center;\n", 27 }, + { " border-radius: 6px;\n", 22 }, + { " padding: 0px;\n", 16 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:icon-lg {\n", 17 }, + { " height: 36px;\n", 16 }, + { " width: 36px;\n", 15 }, + { " justify-content: center;\n", 27 }, + { " padding: 0px;\n", 16 }, + { "}\n", 2 }, + { "button:disabled {\n", 18 }, + { " pointer-events: none;\n", 24 }, + { " opacity: 0.5;\n", 16 }, + { "}\n", 2 }, + { "button:active {\n", 16 }, + { " position: relative;\n", 22 }, + { " top: 1px;\n", 12 }, + { " background-color: #d4d4d4;\n", 29 }, + { "}\n", 2 }, + { "button:outline:active {\n", 24 }, + { " background-color: #d4d4d4;\n", 29 }, + { "}\n", 2 }, + { "button:primary:active {\n", 24 }, + { " background-color: #404040;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "button:secondary:active {\n", 26 }, + { " background-color: #d4d4d4;\n", 29 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "button:ghost:active {\n", 22 }, + { " background-color: #e5e5e5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "button:destructive:active {\n", 28 }, + { " background-color: #fecaca;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "button:link:active {\n", 21 }, + { " background-color: transparent;\n", 33 }, + { " color: #222222;\n", 18 }, + { " text-decoration-line: underline;\n", 35 }, + { "}\n", 2 }, + { "button .fui-icon {\n", 19 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 24px;\n", 21 }, + { "}\n", 2 }, + { "button text {\n", 14 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { "}\n", 2 }, + { "button:xs text,\n", 16 }, + { "button:icon-xs text {\n", 22 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:sm text,\n", 16 }, + { "button:icon-sm text {\n", 22 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:lg text,\n", 16 }, + { "button:icon-lg text {\n", 22 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 24px;\n", 21 }, + { "}\n", 2 }, + { "button:xs .fui-icon,\n", 21 }, + { "button:icon-xs .fui-icon {\n", 27 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "button:sm .fui-icon,\n", 21 }, + { "button:icon-sm .fui-icon {\n", 27 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { "}\n", 2 }, + { "button:lg .fui-icon,\n", 21 }, + { "button:icon-lg .fui-icon {\n", 27 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 24px;\n", 21 }, + { "}\n", 2 }, + { "badge {\n", 8 }, + { " box-sizing: border-box;\n", 26 }, + { " display: inline-flex;\n", 24 }, + { " height: 20px;\n", 16 }, + { " align-items: center;\n", 23 }, + { " gap: 4px;\n", 12 }, + { " border-radius: 9999px;\n", 25 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #222222;\n", 25 }, + { " background-color: #222222;\n", 29 }, + { " padding-left: 8px;\n", 21 }, + { " padding-right: 8px;\n", 22 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " line-height: 18px;\n", 21 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "badge icon {\n", 13 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { " line-height: 1;\n", 18 }, + { "}\n", 2 }, + { "badge:secondary {\n", 18 }, + { " border-color: #f5f5f5;\n", 25 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #222222;\n", 18 }, + { "}\n", 2 }, + { "badge:destructive {\n", 20 }, + { " border-color: #ffe8e9;\n", 25 }, + { " background-color: #ffe8e9;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "badge:outline {\n", 16 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: transparent;\n", 33 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "badge:ghost {\n", 14 }, + { " border-color: transparent;\n", 29 }, + { " background-color: transparent;\n", 33 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "badge:disabled {\n", 17 }, + { " opacity: 0.5;\n", 16 }, + { "}\n", 2 }, + { ".badge-color-blue {\n", 20 }, + { " border-color: #dbeafe;\n", 25 }, + { " background-color: #eff6ff;\n", 29 }, + { " color: #1d4ed8;\n", 18 }, + { "}\n", 2 }, + { ".badge-color-green {\n", 21 }, + { " border-color: #dcfce7;\n", 25 }, + { " background-color: #f0fdf4;\n", 29 }, + { " color: #15803d;\n", 18 }, + { "}\n", 2 }, + { ".badge-color-sky {\n", 19 }, + { " border-color: #e0f2fe;\n", 25 }, + { " background-color: #f0f9ff;\n", 29 }, + { " color: #0369a1;\n", 18 }, + { "}\n", 2 }, + { ".badge-color-purple {\n", 22 }, + { " border-color: #f3e8ff;\n", 25 }, + { " background-color: #faf5ff;\n", 29 }, + { " color: #7e22ce;\n", 18 }, + { "}\n", 2 }, + { ".badge-color-red {\n", 19 }, + { " border-color: #fee2e2;\n", 25 }, + { " background-color: #fef2f2;\n", 29 }, + { " color: #b91c1c;\n", 18 }, + { "}\n", 2 }, + { "alert {\n", 8 }, + { " display: flex;\n", 17 }, + { " align-items: flex-start;\n", 27 }, + { " gap: 8px;\n", 12 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " background-color: #fff;\n", 26 }, + { " padding-left: 10px;\n", 22 }, + { " padding-right: 10px;\n", 23 }, + { " padding-top: 8px;\n", 20 }, + { " padding-bottom: 8px;\n", 23 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "alert icon {\n", 13 }, + { " margin-top: 2px;\n", 19 }, + { " font-size: 16px;\n", 19 }, + { "}\n", 2 }, + { "alert-content {\n", 16 }, + { " display: flex;\n", 17 }, + { " flex: 1 1 0%;\n", 16 }, + { " flex-direction: column;\n", 26 }, + { " gap: 2px;\n", 12 }, + { "}\n", 2 }, + { "alert-title {\n", 14 }, + { " display: block;\n", 18 }, + { " font-weight: 500;\n", 20 }, + { "}\n", 2 }, + { "alert-description {\n", 20 }, + { " display: block;\n", 18 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "alert-action {\n", 15 }, + { " margin-left: auto;\n", 21 }, + { " display: flex;\n", 17 }, + { "}\n", 2 }, + { "alert:success {\n", 16 }, + { " border-color: #bbf7d0;\n", 25 }, + { " background-color: #f0fdf4;\n", 29 }, + { " color: #166534;\n", 18 }, + { "}\n", 2 }, + { "alert:warning {\n", 16 }, + { " border-color: #fde047;\n", 25 }, + { " background-color: #fefce8;\n", 29 }, + { " color: #713f12;\n", 18 }, + { "}\n", 2 }, + { "alert:destructive {\n", 20 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "alert:destructive alert-description {\n", 38 }, + { " color: rgb(231 0 11 / 0.9);\n", 30 }, + { "}\n", 2 }, + { "empty {\n", 8 }, + { " display: flex;\n", 17 }, + { " flex-direction: column;\n", 26 }, + { " align-items: center;\n", 23 }, + { " gap: 16px;\n", 13 }, + { " border-radius: 12px;\n", 23 }, + { " padding: 24px;\n", 17 }, + { " text-align: center;\n", 22 }, + { "}\n", 2 }, + { "empty-header {\n", 15 }, + { " display: flex;\n", 17 }, + { " flex-direction: column;\n", 26 }, + { " align-items: center;\n", 23 }, + { " gap: 8px;\n", 12 }, + { "}\n", 2 }, + { "empty-media {\n", 14 }, + { " margin-bottom: 8px;\n", 22 }, + { "}\n", 2 }, + { "empty-media:icon {\n", 19 }, + { " display: flex;\n", 17 }, + { " height: 32px;\n", 16 }, + { " width: 32px;\n", 15 }, + { " align-items: center;\n", 23 }, + { " justify-content: center;\n", 27 }, + { " border-radius: 8px;\n", 22 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "empty-title {\n", 14 }, + { " display: block;\n", 18 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { "}\n", 2 }, + { "empty-description {\n", 20 }, + { " display: block;\n", 18 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " line-height: 1.625;\n", 22 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "empty-content {\n", 16 }, + { " display: flex;\n", 17 }, + { " flex-direction: column;\n", 26 }, + { " gap: 10px;\n", 13 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { "}\n", 2 }, + { "empty-action {\n", 15 }, + { " display: flex;\n", 17 }, + { " flex-direction: row;\n", 23 }, + { " justify-content: center;\n", 27 }, + { " gap: 8px;\n", 12 }, + { "}\n", 2 }, + { "item {\n", 7 }, + { " display: flex;\n", 17 }, + { " align-items: center;\n", 23 }, + { " gap: 10px;\n", 13 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: transparent;\n", 29 }, + { " padding-left: 12px;\n", 22 }, + { " padding-right: 12px;\n", 23 }, + { " padding-top: 10px;\n", 21 }, + { " padding-bottom: 10px;\n", 24 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { "}\n", 2 }, + { "item:sm {\n", 10 }, + { " gap: 10px;\n", 13 }, + { " padding-left: 12px;\n", 22 }, + { " padding-right: 12px;\n", 23 }, + { " padding-top: 10px;\n", 21 }, + { " padding-bottom: 10px;\n", 24 }, + { "}\n", 2 }, + { "item:xs {\n", 10 }, + { " gap: 8px;\n", 12 }, + { " padding-left: 10px;\n", 22 }, + { " padding-right: 10px;\n", 23 }, + { " padding-top: 8px;\n", 20 }, + { " padding-bottom: 8px;\n", 23 }, + { "}\n", 2 }, + { "item:outline {\n", 15 }, + { " border-color: #e5e5e5;\n", 25 }, + { "}\n", 2 }, + { "item:muted {\n", 13 }, + { " border-color: transparent;\n", 29 }, + { " background-color: rgb(245 245 245 / 0.5);\n", 44 }, + { "}\n", 2 }, + { "item-content {\n", 15 }, + { " display: flex;\n", 17 }, + { " flex: 1 1 0%;\n", 16 }, + { " flex-direction: column;\n", 26 }, + { " gap: 4px;\n", 12 }, + { "}\n", 2 }, + { "item:xs item-content {\n", 23 }, + { " gap: 0px;\n", 12 }, + { "}\n", 2 }, + { "item-media,\n", 12 }, + { "item-actions {\n", 15 }, + { " display: flex;\n", 17 }, + { "}\n", 2 }, + { "item-media {\n", 13 }, + { " gap: 8px;\n", 12 }, + { "}\n", 2 }, + { "item-media:icon {\n", 18 }, + { " display: flex;\n", 17 }, + { " align-items: center;\n", 23 }, + { " justify-content: center;\n", 27 }, + { " font-size: 16px;\n", 19 }, + { "}\n", 2 }, + { "item-media:image {\n", 19 }, + { " height: 40px;\n", 16 }, + { " width: 40px;\n", 15 }, + { " border-radius: 2px;\n", 22 }, + { "}\n", 2 }, + { "item:sm item-media:image {\n", 27 }, + { " height: 32px;\n", 16 }, + { " width: 32px;\n", 15 }, + { "}\n", 2 }, + { "item:xs item-media:image {\n", 27 }, + { " height: 24px;\n", 16 }, + { " width: 24px;\n", 15 }, + { "}\n", 2 }, + { "item-title {\n", 13 }, + { " display: block;\n", 18 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " line-height: 1.375;\n", 22 }, + { "}\n", 2 }, + { "item-description {\n", 19 }, + { " display: block;\n", 18 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " line-height: 1.5;\n", 20 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "item:xs item-description {\n", 27 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { "}\n", 2 }, + { "item:interactive:hover {\n", 25 }, + { " background-color: #f5f5f5;\n", 29 }, + { "}\n", 2 }, + { "item:interactive:active {\n", 26 }, + { " background-color: #e5e5e5;\n", 29 }, + { "}\n", 2 }, + { "item:disabled {\n", 16 }, + { " opacity: 0.5;\n", 16 }, + { "}\n", 2 }, + { "\n", 1 }, + { "progress {\n", 11 }, + { " display: flex;\n", 17 }, + { " width: 100%;\n", 15 }, + { " gap: 12px;\n", 13 }, + { " flex-wrap: wrap;\n", 19 }, + { "}\n", 2 }, + { "progress-track {\n", 17 }, + { " height: 4px;\n", 15 }, + { " width: 100%;\n", 15 }, + { " border-radius: 9999px;\n", 25 }, + { " background-color: #f5f5f5;\n", 29 }, + { "}\n", 2 }, + { "progress-indicator {\n", 21 }, + { " height: 100%;\n", 16 }, + { " border-radius: 9999px;\n", 25 }, + { " background-color: #222222;\n", 29 }, + { "}\n", 2 }, + { "progress-label {\n", 17 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { "}\n", 2 }, + { "progress-value {\n", 17 }, + { " margin-left: auto;\n", 21 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "\n", 1 }, + { "radio-group {\n", 14 }, + { " display: flex;\n", 17 }, + { " flex-direction: column;\n", 26 }, + { " align-items: stretch;\n", 24 }, + { " gap: 8px;\n", 12 }, + { "}\n", 2 }, + { "radio-group-item:checked {\n", 27 }, + { " border-color: #222222;\n", 25 }, + { " background-color: #222222;\n", 29 }, + { "}\n", 2 }, + { "radio-group-item .indicator {\n", 30 }, + { " background-color: #ffffff;\n", 29 }, + { "}\n", 2 }, + { "radio-group-item:disabled {\n", 28 }, + { " opacity: 0.5;\n", 16 }, + { " cursor: not-allowed;\n", 23 }, + { "}\n", 2 }, + { "\n", 1 }, + { "dialog-overlay,\n", 16 }, + { "alert-dialog-overlay {\n", 23 }, + { " background-color: rgba(0, 0, 0, 0.1);\n", 40 }, + { "}\n", 2 }, + { "dialog-content,\n", 16 }, + { "alert-dialog-content {\n", 23 }, + { " border-radius: 12px;\n", 23 }, + { " background-color: #fff;\n", 26 }, + { " padding: 16px;\n", 17 }, + { " color: #222222;\n", 18 }, + { " border: 1px solid #e5e5e5;\n", 29 }, + { " box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);\n", 47 }, + { " font-size: 14px;\n", 19 }, + { "}\n", 2 }, + { "dialog-footer,\n", 15 }, + { "alert-dialog-footer {\n", 22 }, + { " margin-left: -16px;\n", 22 }, + { " margin-right: -16px;\n", 23 }, + { " margin-bottom: -16px;\n", 24 }, + { " border-bottom-right-radius: 12px;\n", 36 }, + { " border-bottom-left-radius: 12px;\n", 35 }, + { " border-top-width: 1px;\n", 25 }, + { " background-color: rgb(245 245 245 / 0.5);\n", 44 }, + { " padding: 16px;\n", 17 }, + { "}\n", 2 }, + { "dialog-title,\n", 14 }, + { "alert-dialog-title {\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 1;\n", 18 }, + { "}\n", 2 }, + { "dialog-description,\n", 20 }, + { "alert-dialog-description {\n", 27 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "alert-dialog-content:sm alert-dialog-header {\n", 46 }, + { " text-align: center;\n", 22 }, + { "}\n", 2 }, + { "alert-dialog-media {\n", 21 }, + { " border-radius: 6px;\n", 22 }, + { " background-color: #f5f5f5;\n", 29 }, + { "}\n", 2 }, + { "alert-dialog-cancel,\n", 21 }, + { "alert-dialog-action {\n", 22 }, + { " display: inline-flex;\n", 24 }, + { " align-items: center;\n", 23 }, + { " gap: 6px;\n", 12 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: #fff;\n", 26 }, + { " padding-left: 10px;\n", 22 }, + { " padding-right: 10px;\n", 23 }, + { " padding-top: 5px;\n", 20 }, + { " padding-bottom: 5px;\n", 23 }, + { " text-align: center;\n", 22 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "alert-dialog-cancel:hover,\n", 27 }, + { "alert-dialog-action:hover {\n", 28 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "alert-dialog-action:primary {\n", 30 }, + { " border-color: transparent;\n", 29 }, + { " background-color: #222222;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "alert-dialog-action:primary:hover {\n", 36 }, + { " background-color: #525252;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "alert-dialog-action:destructive {\n", 34 }, + { " border-color: transparent;\n", 29 }, + { " background-color: #ffe8e9;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "alert-dialog-action:destructive:hover {\n", 40 }, + { " background-color: #fee2e2;\n", 29 }, + { " color: #e7000b;\n", 18 }, + { "}\n", 2 }, + { "alert-dialog-content:sm {\n", 26 }, + { " max-width: 320px;\n", 20 }, + { "}\n", 2 }, + { "\n", 1 }, + { "select-arrow {\n", 15 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "select-value {\n", 15 }, + { " white-space: nowrap;\n", 23 }, + { " font-weight: 400;\n", 20 }, + { "}\n", 2 }, + { "select-arrow.fui-icon {\n", 24 }, + { " line-height: 1;\n", 18 }, + { "}\n", 2 }, + { "select-content {\n", 17 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: #fff;\n", 26 }, + { " padding: 4px;\n", 16 }, + { " color: #222222;\n", 18 }, + { " box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);\n", 45 }, + { "}\n", 2 }, + { "select-label {\n", 15 }, + { " padding-left: 6px;\n", 21 }, + { " padding-right: 6px;\n", 22 }, + { " padding-top: 4px;\n", 20 }, + { " padding-bottom: 4px;\n", 23 }, + { " font-size: 12px;\n", 19 }, + { " line-height: 16px;\n", 21 }, + { " color: #666666;\n", 18 }, + { "}\n", 2 }, + { "select-separator {\n", 19 }, + { " margin-top: 4px;\n", 19 }, + { " margin-bottom: 4px;\n", 22 }, + { " background-color: #e5e5e5;\n", 29 }, + { " height: 1px;\n", 15 }, + { "}\n", 2 }, + { "select-item {\n", 14 }, + { " gap: 6px;\n", 12 }, + { " border-radius: 6px;\n", 22 }, + { " padding-top: 4px;\n", 20 }, + { " padding-bottom: 4px;\n", 23 }, + { " padding-left: 6px;\n", 21 }, + { " padding-right: 32px;\n", 23 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " cursor: pointer;\n", 19 }, + { " white-space: nowrap;\n", 23 }, + { "}\n", 2 }, + { "select-item:hover {\n", 20 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "select-item:active {\n", 21 }, + { " background-color: #e5e5e5;\n", 29 }, + { "}\n", 2 }, + { "select-item:checked {\n", 22 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "select-item:highlighted {\n", 26 }, + { " background-color: #f5f5f5;\n", 29 }, + { " color: #000;\n", 15 }, + { "}\n", 2 }, + { "select-item .select-item-indicator {\n", 37 }, + { " position: absolute;\n", 22 }, + { " right: 8px;\n", 14 }, + { " top: 4px;\n", 12 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " display: none;\n", 17 }, + { "}\n", 2 }, + { "select-item:checked .select-item-indicator {\n", 45 }, + { " display: block;\n", 18 }, + { "}\n", 2 }, + { "select:disabled button,\n", 24 }, + { "select:disabled button:hover,\n", 30 }, + { "select:disabled button:active,\n", 31 }, + { "select-item:disabled,\n", 22 }, + { "select-item:disabled:hover {\n", 29 }, + { " opacity: 0.5;\n", 16 }, + { " cursor: not-allowed;\n", 23 }, + { "}\n", 2 }, + { "select-item:disabled:hover,\n", 28 }, + { "select-item:disabled:active {\n", 30 }, + { " background-color: transparent;\n", 33 }, + { "}\n", 2 }, + { "select:disabled button {\n", 25 }, + { " pointer-events: none;\n", 24 }, + { "}\n", 2 }, + { "select:disabled select-trigger {\n", 33 }, + { " cursor: not-allowed;\n", 23 }, + { "}\n", 2 }, + { "\n", 1 }, + { "checkbox {\n", 11 }, + { " border-radius: 4px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " cursor: pointer;\n", 19 }, + { " font-size: 14px;\n", 19 }, + { "}\n", 2 }, + { "checkbox:checked,\n", 18 }, + { "checkbox:indeterminate {\n", 25 }, + { " border-color: #222222;\n", 25 }, + { " background-color: #222222;\n", 29 }, + { " color: #ffffff;\n", 18 }, + { "}\n", 2 }, + { "checkbox:disabled {\n", 20 }, + { " opacity: 0.5;\n", 16 }, + { " cursor: not-allowed;\n", 23 }, + { "}\n", 2 }, + { "\n", 1 }, + { "field {\n", 8 }, + { " gap: 8px;\n", 12 }, + { "}\n", 2 }, + { "field-set {\n", 12 }, + { " \n", 3 }, + { " gap: 0px;\n", 12 }, + { "}\n", 2 }, + { "field-set field-group {\n", 24 }, + { " margin-top: 12px;\n", 20 }, + { "}\n", 2 }, + { "field-group {\n", 14 }, + { " gap: 20px;\n", 13 }, + { "}\n", 2 }, + { "field-group field-group {\n", 26 }, + { " margin-top: 0px;\n", 19 }, + { " gap: 16px;\n", 13 }, + { "}\n", 2 }, + { "field-set.has-radio-group radio-group {\n", 40 }, + { " margin-top: 12px;\n", 20 }, + { "}\n", 2 }, + { "field-legend {\n", 15 }, + { " font-size: 16px;\n", 19 }, + { " line-height: 24px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { "}\n", 2 }, + { "field-label {\n", 14 }, + { " gap: 8px;\n", 12 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " line-height: 1.375;\n", 22 }, + { "}\n", 2 }, + { "field-content {\n", 16 }, + { " gap: 2px;\n", 12 }, + { " line-height: 1.375;\n", 22 }, + { "}\n", 2 }, + { "field-title {\n", 14 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 500;\n", 20 }, + { " line-height: 1.375;\n", 22 }, + { "}\n", 2 }, + { "field-description {\n", 20 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " font-weight: 400;\n", 20 }, + { " color: #666666;\n", 18 }, + { " line-height: 1.5;\n", 20 }, + { " text-align: left;\n", 20 }, + { "}\n", 2 }, + { "field-separator {\n", 18 }, + { " height: 1px;\n", 15 }, + { " background-color: #e5e5e5;\n", 29 }, + { " margin: 0;\n", 13 }, + { "}\n", 2 }, + { "field-label.has-field {\n", 24 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " padding: 10px;\n", 17 }, + { "}\n", 2 }, + { "\n", 1 }, + { ".clip-safe,\n", 12 }, + { "field,\n", 7 }, + { "field-group,\n", 13 }, + { "field-set {\n", 12 }, + { " box-sizing: border-box;\n", 26 }, + { " padding: 4px;\n", 16 }, + { " margin: -4px;\n", 16 }, + { "}\n", 2 }, + { "\n", 1 }, + { "field select {\n", 15 }, + { " width: 100%;\n", 15 }, + { "}\n", 2 }, + { "field select-trigger {\n", 23 }, + { " display: block;\n", 18 }, + { "}\n", 2 }, + { "field select-trigger button {\n", 30 }, + { " width: 100%;\n", 15 }, + { " min-width: 0;\n", 16 }, + { "}\n", 2 }, + { "field:horizontal select {\n", 26 }, + { " width: auto;\n", 15 }, + { "}\n", 2 }, + { "field:horizontal select-trigger {\n", 34 }, + { " display: inline-block;\n", 25 }, + { "}\n", 2 }, + { "field-label.has-field:hover {\n", 30 }, + { " background-color: rgba(245, 245, 245, 0.5);\n", 46 }, + { "}\n", 2 }, + { "field-label.has-checked {\n", 26 }, + { " background-color: rgba(34, 34, 34, 0.05);\n", 44 }, + { " border-color: rgba(34, 34, 34, 0.3);\n", 39 }, + { "}\n", 2 }, + { "field:disabled,\n", 16 }, + { "field-set:disabled,\n", 20 }, + { "field-legend:disabled,\n", 23 }, + { "field-group:disabled,\n", 22 }, + { "field-label:disabled,\n", 22 }, + { "field-description:disabled,\n", 28 }, + { "field-content:disabled,\n", 24 }, + { "field-title:disabled,\n", 22 }, + { "field-separator:disabled {\n", 27 }, + { " opacity: 0.5;\n", 16 }, + { "}\n", 2 }, + { "\n", 1 }, + { "textinput {\n", 12 }, + { " height: 32px;\n", 16 }, + { " border-radius: 8px;\n", 22 }, + { " border-width: 1px;\n", 21 }, + { " border-color: #e5e5e5;\n", 25 }, + { " background-color: #fff;\n", 26 }, + { " padding-left: 10px;\n", 22 }, + { " padding-right: 10px;\n", 23 }, + { " padding-top: 4px;\n", 20 }, + { " padding-bottom: 4px;\n", 23 }, + { " font-size: 14px;\n", 19 }, + { " line-height: 20px;\n", 21 }, + { " color: #000;\n", 15 }, + { " box-sizing: border-box;\n", 26 }, + { "}\n", 2 }, + { "textinput:focus {\n", 18 }, + { " border-color: #000;\n", 22 }, + { " box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1);\n", 47 }, + { "}\n", 2 }, + { "textinput:disabled {\n", 21 }, + { " opacity: 0.5;\n", 16 }, + { "}\n", 2 }, +}; +static const size_t css_str_style_nova_total_length = 15138; +static inline void ui_load_css_string_style_nova_chunks(void) +{ + size_t i; + char *css = malloc(css_str_style_nova_total_length + 1); + char *dest; + + if (!css) { + return; + } + dest = css; + for (i = 0; i < sizeof(css_str_style_nova_chunks) / + sizeof(css_str_style_nova_chunks[0]); + ++i) { + memcpy(dest, css_str_style_nova_chunks[i].chunk, + css_str_style_nova_chunks[i].length); + dest += css_str_style_nova_chunks[i].length; + } + css[css_str_style_nova_total_length] = 0; + ui_load_css_string(css, "style-nova.css"); + free(css); +} diff --git a/tailwind.config.js b/tailwind.config.js new file mode 100644 index 00000000..a2900376 --- /dev/null +++ b/tailwind.config.js @@ -0,0 +1,52 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + content: ["./src/**/*.{c,h,css}"], + theme: { + extend: { + colors: { + background: "#fff", + primary: "#222222", + "primary-foreground": "#ffffff", + secondary: "#f5f5f5", + "secondary-foreground": "#222222", + foreground: "#000", + border: "#e5e5e5", + destructive: "#e7000b", + "destructive-muted": "#ffe8e9", + muted: "#f5f5f5", + "muted-foreground": "#666666", + card: "#fff", + "card-foreground": "#000", + popover: "#fff", + "popover-foreground": "#222222", + }, + }, + }, + corePlugins: [ + "display", + "flexDirection", + "flex", + "alignItems", + "justifyContent", + "width", + "height", + "padding", + "margin", + "gap", + "borderRadius", + "borderWidth", + "borderColor", + "backgroundColor", + "textColor", + "fontSize", + "fontWeight", + "lineHeight", + "textAlign", + "position", + "inset", + "pointerEvents", + "textDecoration", + "textUnderlineOffset", + "opacity", + ], +};