Rewrite
This commit is contained in:
		
						commit
						d6c414f887
					
				
					 97 changed files with 17956 additions and 0 deletions
				
			
		
							
								
								
									
										75
									
								
								tailwind.config.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										75
									
								
								tailwind.config.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,75 @@
 | 
			
		|||
function withOpacity(variableName) {
 | 
			
		||||
  return ({ opacityValue }) => {
 | 
			
		||||
    if (opacityValue !== undefined) {
 | 
			
		||||
      return `rgba(var(${variableName}), ${opacityValue})`;
 | 
			
		||||
    }
 | 
			
		||||
    return `rgb(var(${variableName}))`;
 | 
			
		||||
  };
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/** @type {import('tailwindcss').Config} */
 | 
			
		||||
module.exports = {
 | 
			
		||||
  content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
 | 
			
		||||
  theme: {
 | 
			
		||||
    // Remove the following screen breakpoint or add other breakpoints
 | 
			
		||||
    // if one breakpoint is not enough for you
 | 
			
		||||
    screens: {
 | 
			
		||||
      sm: "640px",
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    extend: {
 | 
			
		||||
      textColor: {
 | 
			
		||||
        skin: {
 | 
			
		||||
          base: withOpacity("--color-text-base"),
 | 
			
		||||
          accent: withOpacity("--color-accent"),
 | 
			
		||||
          inverted: withOpacity("--color-fill"),
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      backgroundColor: {
 | 
			
		||||
        skin: {
 | 
			
		||||
          fill: withOpacity("--color-fill"),
 | 
			
		||||
          accent: withOpacity("--color-accent"),
 | 
			
		||||
          inverted: withOpacity("--color-text-base"),
 | 
			
		||||
          card: withOpacity("--color-card"),
 | 
			
		||||
          "card-muted": withOpacity("--color-card-muted"),
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      outlineColor: {
 | 
			
		||||
        skin: {
 | 
			
		||||
          fill: withOpacity("--color-accent"),
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      borderColor: {
 | 
			
		||||
        skin: {
 | 
			
		||||
          line: withOpacity("--color-border"),
 | 
			
		||||
          fill: withOpacity("--color-text-base"),
 | 
			
		||||
          accent: withOpacity("--color-accent"),
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      fill: {
 | 
			
		||||
        skin: {
 | 
			
		||||
          base: withOpacity("--color-text-base"),
 | 
			
		||||
          accent: withOpacity("--color-accent"),
 | 
			
		||||
        },
 | 
			
		||||
        transparent: "transparent",
 | 
			
		||||
      },
 | 
			
		||||
      fontFamily: {
 | 
			
		||||
        mono: ["IBM Plex Mono", "monospace"],
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      typography: {
 | 
			
		||||
        DEFAULT: {
 | 
			
		||||
          css: {
 | 
			
		||||
            pre: {
 | 
			
		||||
              color: false,
 | 
			
		||||
            },
 | 
			
		||||
            code: {
 | 
			
		||||
              color: false,
 | 
			
		||||
            },
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  plugins: [require("@tailwindcss/typography")],
 | 
			
		||||
};
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue