0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

feat: add theme vars

This commit is contained in:
Gao Sun 2021-07-11 22:26:08 +08:00
parent 0bc126f29b
commit f1db6b3cda
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
5 changed files with 61 additions and 3 deletions

7
packages/ui/.vscode/extensions.json vendored Normal file
View file

@ -0,0 +1,7 @@
{
"recommendations": [
"mikestead.dotenv",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint"
]
}

9
packages/ui/.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,9 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"[scss]": {
"editor.codeActionsOnSave": {
"source.fixAll.stylelint": true
}
}
}

View file

@ -1,3 +1,3 @@
# React Boilerplate
# @logto/ui
TypeScript React + SCSS Modules
The core register / sign in experience for end-users.

View file

@ -1,5 +1,5 @@
{
"name": "react-boilerplate",
"name": "@logto/ui",
"version": "0.1.0",
"license": "UNLICENSED",
"scripts": {

View file

@ -0,0 +1,42 @@
.universal {
// Color
--color-gradient: linear-gradient(12.07deg, #3c4ce3 8.81%, #717ce0 93.49%);
--color-button-background: #3c4ce3;
--color-button-background-disabled: #626fe8;
--color-button-text: #f5f5f5;
--color-button-text-disabled: #eee;
--color-error: #ff6b66;
// Shadow
--shadow-button: 2px 2px 8px rgb(60 76 227 / 25%);
}
.dark {
// Color
--color-heading: #f3f6f9;
--color-body: #dadae0;
--color-secondary: #b3b7ba;
--color-placeholder: #888;
--color-control-background: #45484a;
--color-control-background-disabled: #65686a;
--color-background: #101419;
// Shadow
--shadow-card: 2px 2px 24px rgb(59 61 63 / 25%);
--shadow-control: 1px 1px 2px rgb(221 221 221 / 25%);
}
.light {
// Color
--color-heading: #333;
--color-body: #555;
--color-secondary: #888;
--color-placeholder: #aaa;
--color-control-background: #f5f8fa;
--color-control-background-disabled: #eaeaea;
--color-background: #fdfdff;
// Shadow
--shadow-card: 2px 2px 24px rgb(187 189 191 / 20%);
--shadow-control: 1px 1px 2px rgb(221 221 221 / 25%);
}