From 51bf536eaa98be3584ba2ba068c53423c253d3c5 Mon Sep 17 00:00:00 2001 From: PKulkoRaccoonGang Date: Fri, 8 Sep 2023 13:11:08 +0300 Subject: [PATCH] fix: removed extra commons.css generation --- www/src/components/PageLayout.tsx | 5 ----- www/src/pages/foundations/colors.tsx | 9 ++++----- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/www/src/components/PageLayout.tsx b/www/src/components/PageLayout.tsx index 440e9f4577d..a5e13758193 100644 --- a/www/src/components/PageLayout.tsx +++ b/www/src/components/PageLayout.tsx @@ -27,11 +27,6 @@ import { SettingsContext } from '../context/SettingsContext'; import LeaveFeedback from './LeaveFeedback'; import AutoToc from './AutoToc'; -if (process.env.NODE_ENV === 'development') { - /* eslint-disable-next-line global-require */ - require('~paragon-style/scss/core/core.scss'); -} - export interface ILayout { children: React.ReactNode, showMinimizedTitle: boolean, diff --git a/www/src/pages/foundations/colors.tsx b/www/src/pages/foundations/colors.tsx index 9a61abbd0f3..6c37ef6b03d 100644 --- a/www/src/pages/foundations/colors.tsx +++ b/www/src/pages/foundations/colors.tsx @@ -55,7 +55,7 @@ export interface ISwatch { isUnused?: boolean, } -const styles = getComputedStyle(document.body); +const styles = window.getComputedStyle(document.body); function Swatch({ name, colorClassName, isUnused }: ISwatch) { const computedValue = styles.getPropertyValue(name); @@ -128,16 +128,15 @@ export default function ColorsPage({ data }: IColorsPage) { {colors .slice(0, 3) .map(({ themeName, unusedLevels }) => renderColorRamp(themeName, unusedLevels))} + {colors + .slice(3) + .map(({ themeName, unusedLevels }) => renderColorRamp(themeName, unusedLevels))}

accents

- - {colors - .slice(3) - .map(({ themeName, unusedLevels }) => renderColorRamp(themeName, unusedLevels))}

CSS Color Usage