From 5fd236135c36121dc4e4694f1b64b89ee3a614a9 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 25 Jul 2023 07:24:50 -0400 Subject: [PATCH] Revert temporary dark theme tokens (#74) * Revert "fix: include token for color-primary-300 for dark theme (#73)" This reverts commit 977f62a6e773be4c241a933062dee1579526655b. * Revert "feat: POC for dark mode demo (#71)" This reverts commit b76772caca5217ea200557310ece80a4d9dd980c. --- package.json | 4 ++-- paragon/css/core/custom-media-breakpoints.css | 2 +- paragon/css/core/index.css | 4 ++-- paragon/css/core/variables.css | 2 +- paragon/css/themes/dark/index.css | 2 -- paragon/css/themes/dark/utility-classes.css | 0 paragon/css/themes/dark/variables.css | 10 ---------- paragon/css/themes/light/variables.css | 2 +- tokens/src/themes/dark/global/color.json | 11 ----------- 9 files changed, 7 insertions(+), 30 deletions(-) delete mode 100644 paragon/css/themes/dark/index.css delete mode 100644 paragon/css/themes/dark/utility-classes.css delete mode 100644 paragon/css/themes/dark/variables.css delete mode 100644 tokens/src/themes/dark/global/color.json diff --git a/package.json b/package.json index debb948f..ed83f030 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "access": "public" }, "scripts": { - "build-design-tokens": "build-design-tokens --source ./tokens/src --build-dir ./paragon/css --source-tokens-only --themes light dark", - "build-scss": "build-scss --corePath ./paragon/core.scss --themesPath ./paragon/css/themes --defaultThemeVariants light dark", + "build-design-tokens": "build-design-tokens --source ./tokens/src --build-dir ./paragon/css --source-tokens-only", + "build-scss": "build-scss --corePath ./paragon/core.scss --themesPath ./paragon/css/themes --defaultThemeVariants light", "build": "make build" }, "devDependencies": { diff --git a/paragon/css/core/custom-media-breakpoints.css b/paragon/css/core/custom-media-breakpoints.css index 618d2523..a0b15ea2 100644 --- a/paragon/css/core/custom-media-breakpoints.css +++ b/paragon/css/core/custom-media-breakpoints.css @@ -1,6 +1,6 @@ /** * IMPORTANT: This file is the result of assembling design tokens * Do not edit directly - * Generated on Tue, 25 Jul 2023 11:17:09 GMT + * Generated on Sun, 23 Jul 2023 16:09:04 GMT */ diff --git a/paragon/css/core/index.css b/paragon/css/core/index.css index 1a106532..e3d6892b 100644 --- a/paragon/css/core/index.css +++ b/paragon/css/core/index.css @@ -1,4 +1,4 @@ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Roboto+Mono&display=swap'); -@import "custom-media-breakpoints.css"; -@import "variables.css"; +@import "./custom-media-breakpoints.css"; +@import "./variables.css"; diff --git a/paragon/css/core/variables.css b/paragon/css/core/variables.css index 0dae4efb..2d8e9ed6 100644 --- a/paragon/css/core/variables.css +++ b/paragon/css/core/variables.css @@ -1,7 +1,7 @@ /** * IMPORTANT: This file is the result of assembling design tokens * Do not edit directly - * Generated on Tue, 25 Jul 2023 11:17:09 GMT + * Generated on Sun, 23 Jul 2023 16:09:04 GMT */ :root { diff --git a/paragon/css/themes/dark/index.css b/paragon/css/themes/dark/index.css deleted file mode 100644 index 0b94ebd1..00000000 --- a/paragon/css/themes/dark/index.css +++ /dev/null @@ -1,2 +0,0 @@ -@import "variables.css"; -@import "utility-classes.css"; diff --git a/paragon/css/themes/dark/utility-classes.css b/paragon/css/themes/dark/utility-classes.css deleted file mode 100644 index e69de29b..00000000 diff --git a/paragon/css/themes/dark/variables.css b/paragon/css/themes/dark/variables.css deleted file mode 100644 index cbcd32b7..00000000 --- a/paragon/css/themes/dark/variables.css +++ /dev/null @@ -1,10 +0,0 @@ -/** - * IMPORTANT: This file is the result of assembling design tokens - * Do not edit directly - * Generated on Tue, 25 Jul 2023 11:17:09 GMT - */ - -:root { - --pgn-color-primary-base: #FF0000FF; - --pgn-color-300: #FF8080FF; -} diff --git a/paragon/css/themes/light/variables.css b/paragon/css/themes/light/variables.css index 0242f150..d2a60b02 100644 --- a/paragon/css/themes/light/variables.css +++ b/paragon/css/themes/light/variables.css @@ -1,7 +1,7 @@ /** * IMPORTANT: This file is the result of assembling design tokens * Do not edit directly - * Generated on Tue, 25 Jul 2023 11:17:09 GMT + * Generated on Sun, 23 Jul 2023 16:09:04 GMT */ :root { diff --git a/tokens/src/themes/dark/global/color.json b/tokens/src/themes/dark/global/color.json deleted file mode 100644 index 6e243080..00000000 --- a/tokens/src/themes/dark/global/color.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "color": { - "primary": { - "base": { "value": "red" } - }, - "300": { - "value": "{color.primary.base}", - "modify": [{ "type": "mix", "otherColor": "white", "amount": "0.50"}] - } - } -}