refactor: move common to theme folder

Sergey Onufrienko created

Change summary

styles/src/colorSchemes.ts          | 2 +-
styles/src/themes/atelier/common.ts | 2 +-
styles/src/themes/ayu/ayu-dark.ts   | 2 +-
styles/src/themes/ayu/ayu-light.ts  | 2 +-
styles/src/themes/ayu/ayu-mirage.ts | 2 +-
styles/src/themes/ayu/common.ts     | 6 +++---
6 files changed, 8 insertions(+), 8 deletions(-)

Detailed changes

styles/src/colorSchemes.ts 🔗

@@ -4,7 +4,7 @@ import { ColorScheme, Meta } from "./themes/common/colorScheme"
 
 const THEMES_DIRECTORY = path.resolve(`${__dirname}/themes`)
 const STAFF_DIRECTORY = path.resolve(`${__dirname}/themes/staff`)
-const IGNORE_ITEMS = ["staff", "common", "template.ts"]
+const IGNORE_ITEMS = ["staff", "common", "common.ts"]
 const ACCEPT_EXTENSION = ".ts"
 
 function getAllTsFiles(directoryPath: string) {

styles/src/themes/common/atelier-common.ts → styles/src/themes/atelier/common.ts 🔗

@@ -1,4 +1,4 @@
-import { License, Meta, ThemeSyntax } from "./colorScheme"
+import { License, Meta, ThemeSyntax } from "../common/colorScheme"
 
 export interface Variant {
     meta: Meta

styles/src/themes/ayu/ayu-dark.ts 🔗

@@ -1,5 +1,5 @@
 import { createColorScheme } from "../common/ramps"
-import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
+import { ayu, meta as themeMeta, buildTheme } from "./common"
 
 export const meta = {
     ...themeMeta,

styles/src/themes/ayu/ayu-light.ts 🔗

@@ -1,5 +1,5 @@
 import { createColorScheme } from "../common/ramps"
-import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
+import { ayu, meta as themeMeta, buildTheme } from "./common"
 
 export const meta = {
     ...themeMeta,

styles/src/themes/ayu/ayu-mirage.ts 🔗

@@ -1,5 +1,5 @@
 import { createColorScheme } from "../common/ramps"
-import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
+import { ayu, meta as themeMeta, buildTheme } from "./common"
 
 export const meta = {
     ...themeMeta,

styles/src/themes/common/ayu-common.ts → styles/src/themes/ayu/common.ts 🔗

@@ -1,8 +1,8 @@
 import { dark, light, mirage } from "ayu"
-import { ThemeSyntax } from "./syntax"
+import { ThemeSyntax } from "../common/syntax"
 import chroma from "chroma-js"
-import { colorRamp } from "./ramps"
-import { Meta } from "./colorScheme"
+import { colorRamp } from "../common/ramps"
+import { Meta } from "../common/colorScheme"
 
 export const ayu = {
     dark,