ぼざクリ タグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
953 B

  1. /** @type {import('tailwindcss').Config} */
  2. import type { Config } from 'tailwindcss'
  3. import { DARK_COLOUR_SHADE,
  4. LIGHT_COLOUR_SHADE,
  5. TAG_COLOUR } from './src/consts'
  6. const colours = Object.values (TAG_COLOUR)
  7. export default {
  8. content: ['./src/**/*.{html,js,ts,jsx,tsx}'],
  9. safelist: [...colours.map (c => `text-${ c }-${ LIGHT_COLOUR_SHADE }`),
  10. ...colours.map (c => `hover:text-${ c }-${ LIGHT_COLOUR_SHADE - 200 }`),
  11. ...colours.map (c => `dark:text-${ c }-${ DARK_COLOUR_SHADE }`),
  12. ...colours.map (c => `dark:hover:text-${ c }-${ DARK_COLOUR_SHADE - 200 }`)],
  13. theme: {
  14. extend: {
  15. animation: {
  16. 'rainbow-scroll': 'rainbow-scroll .25s linear infinite' },
  17. colors: {
  18. red: { 925: '#5f1414',
  19. 975: '#230505' } },
  20. keyframes: {
  21. 'rainbow-scroll': {
  22. '0%': { backgroundPosition: '0% 50%' },
  23. '100%': { backgroundPosition: '200% 50%' } } } } },
  24. plugins: [] } satisfies Config