Guest User

tailwind.config.ts

a guest
Aug 10th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /** @type {import('tailwindcss').Config} */
  2. module.exports = {
  3.     darkMode: ['class'],
  4.     content: ['./pages/**/*.{ts,tsx}', './components/**/*.{ts,tsx}', './app/**/*.{ts,tsx}', './src/**/*.{ts,tsx}'],
  5.     theme: {
  6.         container: {
  7.             center: true,
  8.             padding: '2rem',
  9.             screens: {
  10.                 '2xl': '1400px',
  11.             },
  12.         },
  13.         fontSize: {
  14.             'heading1-bold': [
  15.                 '36px',
  16.                 {
  17.                     lineHeight: '140%',
  18.                     fontWeight: '700',
  19.                 },
  20.             ],
  21.             'heading1-semibold': [
  22.                 '36px',
  23.                 {
  24.                     lineHeight: '140%',
  25.                     fontWeight: '600',
  26.                 },
  27.             ],
  28.             'heading2-bold': [
  29.                 '30px',
  30.                 {
  31.                     lineHeight: '140%',
  32.                     fontWeight: '700',
  33.                 },
  34.             ],
  35.             'heading2-semibold': [
  36.                 '30px',
  37.                 {
  38.                     lineHeight: '140%',
  39.                     fontWeight: '600',
  40.                 },
  41.             ],
  42.             'heading3-bold': [
  43.                 '24px',
  44.                 {
  45.                     lineHeight: '140%',
  46.                     fontWeight: '700',
  47.                 },
  48.             ],
  49.             'heading4-medium': [
  50.                 '20px',
  51.                 {
  52.                     lineHeight: '140%',
  53.                     fontWeight: '500',
  54.                 },
  55.             ],
  56.             'body-bold': [
  57.                 '18px',
  58.                 {
  59.                     lineHeight: '140%',
  60.                     fontWeight: '700',
  61.                 },
  62.             ],
  63.             'body-semibold': [
  64.                 '18px',
  65.                 {
  66.                     lineHeight: '140%',
  67.                     fontWeight: '600',
  68.                 },
  69.             ],
  70.             'body-medium': [
  71.                 '18px',
  72.                 {
  73.                     lineHeight: '140%',
  74.                     fontWeight: '500',
  75.                 },
  76.             ],
  77.             'body-normal': [
  78.                 '18px',
  79.                 {
  80.                     lineHeight: '140%',
  81.                     fontWeight: '400',
  82.                 },
  83.             ],
  84.             'body1-bold': [
  85.                 '18px',
  86.                 {
  87.                     lineHeight: '140%',
  88.                     fontWeight: '700',
  89.                 },
  90.             ],
  91.             'base-regular': [
  92.                 '16px',
  93.                 {
  94.                     lineHeight: '140%',
  95.                     fontWeight: '400',
  96.                 },
  97.             ],
  98.             'base-medium': [
  99.                 '16px',
  100.                 {
  101.                     lineHeight: '140%',
  102.                     fontWeight: '500',
  103.                 },
  104.             ],
  105.             'base-semibold': [
  106.                 '16px',
  107.                 {
  108.                     lineHeight: '140%',
  109.                     fontWeight: '600',
  110.                 },
  111.             ],
  112.             'base1-semibold': [
  113.                 '16px',
  114.                 {
  115.                     lineHeight: '140%',
  116.                     fontWeight: '600',
  117.                 },
  118.             ],
  119.             'small-regular': [
  120.                 '14px',
  121.                 {
  122.                     lineHeight: '140%',
  123.                     fontWeight: '400',
  124.                 },
  125.             ],
  126.             'small-medium': [
  127.                 '14px',
  128.                 {
  129.                     lineHeight: '140%',
  130.                     fontWeight: '500',
  131.                 },
  132.             ],
  133.             'small-semibold': [
  134.                 '14px',
  135.                 {
  136.                     lineHeight: '140%',
  137.                     fontWeight: '600',
  138.                 },
  139.             ],
  140.             'subtle-medium': [
  141.                 '12px',
  142.                 {
  143.                     lineHeight: '16px',
  144.                     fontWeight: '500',
  145.                 },
  146.             ],
  147.             'subtle-semibold': [
  148.                 '12px',
  149.                 {
  150.                     lineHeight: '16px',
  151.                     fontWeight: '600',
  152.                 },
  153.             ],
  154.             'tiny-medium': [
  155.                 '10px',
  156.                 {
  157.                     lineHeight: '140%',
  158.                     fontWeight: '500',
  159.                 },
  160.             ],
  161.             'x-small-semibold': [
  162.                 '7px',
  163.                 {
  164.                     lineHeight: '9.318px',
  165.                     fontWeight: '600',
  166.                 },
  167.             ],
  168.         },
  169.         extend: {
  170.             colors: {
  171.                 'primary-500': '#877EFF',
  172.                 'secondary-500': '#FFB620',
  173.                 blue: '#0095F6',
  174.                 'logout-btn': '#FF5A5A',
  175.                 'navbar-menu': 'rgba(16, 16, 18, 0.6)',
  176.                 'dark-1': '#000000',
  177.                 'dark-2': '#121417',
  178.                 'dark-3': '#101012',
  179.                 'dark-4': '#1F1F22',
  180.                 'light-1': '#FFFFFF',
  181.                 'light-2': '#EFEFEF',
  182.                 'light-3': '#7878A3',
  183.                 'light-4': '#5C5C7B',
  184.                 'gray-1': '#697C89',
  185.                 glassmorphism: 'rgba(16, 16, 18, 0.60)',
  186.             },
  187.             boxShadow: {
  188.                 'count-badge': '0px 0px 6px 2px rgba(219, 188, 159, 0.30)',
  189.                 'groups-sidebar': '-30px 0px 60px 0px rgba(28, 28, 31, 0.50)',
  190.             },
  191.             screens: {
  192.                 xs: '400px',
  193.             },
  194.             keyframes: {
  195.                 'accordion-down': {
  196.                     from: { height: 0 },
  197.                     to: { height: 'var(--radix-accordion-content-height)' },
  198.                 },
  199.                 'accordion-up': {
  200.                     from: { height: 'var(--radix-accordion-content-height)' },
  201.                     to: { height: 0 },
  202.                 },
  203.             },
  204.             animation: {
  205.                 'accordion-down': 'accordion-down 0.2s ease-out',
  206.                 'accordion-up': 'accordion-up 0.2s ease-out',
  207.             },
  208.         },
  209.     },
  210.     plugins: [require('tailwindcss-animate')],
  211. };
  212.  
Advertisement
Add Comment
Please, Sign In to add comment