diff --git a/package.json b/package.json index b83b304ac..b6a82cb6e 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "@graphql-codegen/urql-introspection": "3.0.0", "@graphql-inspector/cli": "4.0.3", "@graphql-typed-document-node/core": "3.2.0", + "@otomadb/tailwind-config": "github:otomadb/tailwind-config", "@storybook/addon-actions": "7.6.1", "@storybook/addon-docs": "7.6.1", "@storybook/addon-essentials": "7.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bc88c7e92..cb6baaefe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -102,7 +102,7 @@ devDependencies: version: 7.23.5 '@graphql-codegen/cli': specifier: 5.0.0 - version: 5.0.0(@parcel/watcher@2.3.0)(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1)(typescript@5.3.2) + version: 5.0.0(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1)(typescript@5.3.2) '@graphql-codegen/client-preset': specifier: 4.1.0 version: 4.1.0(encoding@0.1.13)(graphql@16.8.1) @@ -115,6 +115,9 @@ devDependencies: '@graphql-typed-document-node/core': specifier: 3.2.0 version: 3.2.0(graphql@16.8.1) + '@otomadb/tailwind-config': + specifier: github:otomadb/tailwind-config + version: github.com/otomadb/tailwind-config/7f9547cf30723a31194057cd5eaec4d94e3aeb9c '@storybook/addon-actions': specifier: 7.6.1 version: 7.6.1 @@ -2334,7 +2337,7 @@ packages: tslib: 2.5.3 dev: true - /@graphql-codegen/cli@5.0.0(@parcel/watcher@2.3.0)(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1)(typescript@5.3.2): + /@graphql-codegen/cli@5.0.0(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1)(typescript@5.3.2): resolution: {integrity: sha512-A7J7+be/a6e+/ul2KI5sfJlpoqeqwX8EzktaKCeduyVKgOLA6W5t+NUGf6QumBDXU8PEOqXk3o3F+RAwCWOiqA==} hasBin: true peerDependencies: @@ -2359,7 +2362,6 @@ packages: '@graphql-tools/prisma-loader': 8.0.2(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1) '@graphql-tools/url-loader': 8.0.0(@types/node@18.18.14)(encoding@0.1.13)(graphql@16.8.1) '@graphql-tools/utils': 10.0.11(graphql@16.8.1) - '@parcel/watcher': 2.3.0 '@whatwg-node/fetch': 0.8.8 chalk: 4.1.2 cosmiconfig: 8.3.6(typescript@5.3.2) @@ -3792,6 +3794,7 @@ packages: cpu: [arm64] os: [android] requiresBuild: true + dev: false optional: true /@parcel/watcher-darwin-arm64@2.3.0: @@ -3800,6 +3803,7 @@ packages: cpu: [arm64] os: [darwin] requiresBuild: true + dev: false optional: true /@parcel/watcher-darwin-x64@2.3.0: @@ -3808,6 +3812,7 @@ packages: cpu: [x64] os: [darwin] requiresBuild: true + dev: false optional: true /@parcel/watcher-freebsd-x64@2.3.0: @@ -3816,6 +3821,7 @@ packages: cpu: [x64] os: [freebsd] requiresBuild: true + dev: false optional: true /@parcel/watcher-linux-arm-glibc@2.3.0: @@ -3824,6 +3830,7 @@ packages: cpu: [arm] os: [linux] requiresBuild: true + dev: false optional: true /@parcel/watcher-linux-arm64-glibc@2.3.0: @@ -3832,6 +3839,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: false optional: true /@parcel/watcher-linux-arm64-musl@2.3.0: @@ -3840,6 +3848,7 @@ packages: cpu: [arm64] os: [linux] requiresBuild: true + dev: false optional: true /@parcel/watcher-linux-x64-glibc@2.3.0: @@ -3848,6 +3857,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: false optional: true /@parcel/watcher-linux-x64-musl@2.3.0: @@ -3856,6 +3866,7 @@ packages: cpu: [x64] os: [linux] requiresBuild: true + dev: false optional: true /@parcel/watcher-win32-arm64@2.3.0: @@ -3864,6 +3875,7 @@ packages: cpu: [arm64] os: [win32] requiresBuild: true + dev: false optional: true /@parcel/watcher-win32-ia32@2.3.0: @@ -3872,6 +3884,7 @@ packages: cpu: [ia32] os: [win32] requiresBuild: true + dev: false optional: true /@parcel/watcher-win32-x64@2.3.0: @@ -3880,6 +3893,7 @@ packages: cpu: [x64] os: [win32] requiresBuild: true + dev: false optional: true /@parcel/watcher@2.3.0: @@ -3903,6 +3917,7 @@ packages: '@parcel/watcher-win32-arm64': 2.3.0 '@parcel/watcher-win32-ia32': 2.3.0 '@parcel/watcher-win32-x64': 2.3.0 + dev: false /@peculiar/asn1-schema@2.3.8: resolution: {integrity: sha512-ULB1XqHKx1WBU/tTFIA+uARuRoBVZ4pNdOA878RDrRbBfBGcSzi5HBkdScC6ZbHn8z7L8gmKCgPC1LHRrP46tA==} @@ -8796,6 +8811,7 @@ packages: resolution: {integrity: sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==} engines: {node: '>=0.10'} hasBin: true + dev: false /detect-libc@2.0.2: resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} @@ -12121,6 +12137,7 @@ packages: /node-addon-api@7.0.0: resolution: {integrity: sha512-vgbBJTS4m5/KkE16t5Ly0WW9hz46swAstv0hYYwMtbG7AznRhNyfLRe8HZAiWIpcHzoO7HxhLuBQj9rJ/Ho0ZA==} + dev: false /node-dir@0.1.17: resolution: {integrity: sha512-tmPX422rYgofd4epzrNoOXiE8XFZYOcCq1vD7MAXCDO+O+zndlA2ztdKKMa+EeuBG5tHETpr4ml4RGgpqDCCAg==} @@ -15746,3 +15763,11 @@ packages: /zod@3.22.4: resolution: {integrity: sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==} dev: false + + github.com/otomadb/tailwind-config/7f9547cf30723a31194057cd5eaec4d94e3aeb9c: + resolution: {tarball: https://codeload.github.com/otomadb/tailwind-config/tar.gz/7f9547cf30723a31194057cd5eaec4d94e3aeb9c} + name: '@otomadb/tailwind-config' + version: 0.0.0 + prepare: true + requiresBuild: true + dev: true diff --git a/tailwind.config.js b/tailwind.config.js index fa24af26a..07cd17c76 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,6 +1,8 @@ const plugin = require("tailwindcss/plugin"); const colors = require("tailwindcss/colors"); +const myConfig = require("@otomadb/tailwind-config"); + const mkTagTheme = (color) => ({ primary: color[300], secondary: color[400], @@ -54,23 +56,7 @@ module.exports = { 50: "50ms", }, colors: { - "vivid": { - primary: "hsl(162, 91%, 73%)", - }, - "obsidian": { - darkest: "hsl(232, 34%, 6%)", - darker: "hsl(228, 21%, 9%)", - primary: "hsl(222, 17%, 13%)", - lighter: "hsl(218, 20%, 21%)", - lightest: "hsl(216, 13%, 28%)", - }, - "snow": { - darkest: "hsl(210, 16%, 62%)", - darker: "hsl(210, 29%, 76%)", - primary: "hsl(210, 22%, 84%)", - lighter: "hsl(210, 18%, 92%)", - lightest: "hsl(210, 14%, 96%)", - }, + ...myConfig.colors, // other services "nicovideo": { primary: "#FFF", sub: "#252525" }, "youtube": { primary: "#FF0000" },