Skip to content

Commit

Permalink
refactor config
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 27, 2023
1 parent 944f911 commit 49c7216
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 51 deletions.
2 changes: 1 addition & 1 deletion postcss.config.cjs → postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
Expand Down
4 changes: 0 additions & 4 deletions prettier.config.cjs

This file was deleted.

4 changes: 4 additions & 0 deletions prettier.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// prettier.config.js
export default {
plugins: ["prettier-plugin-organize-imports", "prettier-plugin-tailwindcss"],
};
46 changes: 0 additions & 46 deletions tailwind.config.cjs

This file was deleted.

49 changes: 49 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import type { Config } from "tailwindcss";

const config: Config = {
content: ["./src/**/*.{html,js,jsx,ts,tsx}"],
theme: {
extend: {
colors: {
discord: "#5865f2",
background: "#242729",
dark: {
light: "#464649",
lightAlt: "#1f1f23",
DEFAULT: "#222222",
dark: "#0e0e10",
},
},
screens: {
tall: { raw: "(min-height: 820px)" },
},
keyframes: {
flicker: {
"0%, 19.999%, 22%, 62.999%, 64%, 64.999%, 70%, 100%": {
opacity: "0.99",
filter:
"drop-shadow(0 0 1px rgba(252, 211, 77)) drop-shadow(0 0 15px rgba(245, 158, 11)) drop-shadow(0 0 1px rgba(252, 211, 77))",
},
"20%, 21.999%, 63%, 63.999%, 65%, 69.999%": {
opacity: "0.4",
filter: "none",
},
},
shimmer: {
"0%": {
backgroundPosition: "-700px 0",
},
"100%": {
backgroundPosition: "700px 0",
},
},
},
animation: {
flicker: "flicker 3s linear infinite",
shimmer: "shimmer 1.3s linear infinite",
},
},
},
};

export default config;

0 comments on commit 49c7216

Please sign in to comment.