{"id":46028,"date":"2023-01-07T16:33:29","date_gmt":"2023-01-07T16:33:29","guid":{"rendered":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/?p=46028"},"modified":"2023-01-07T19:06:20","modified_gmt":"2023-01-07T19:06:20","slug":"tailwind-starter-config-files","status":"publish","type":"post","link":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/tailwind-starter-config-files\/","title":{"rendered":"Tailwind Starter Config files"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Prepared config files to get you started fast with best practices<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Fluid Typography (With link to edit)<\/li>\n\n\n\n<li>Fluid Sizes (With link to edit)<\/li>\n\n\n\n<li>10px = 1rem (HTML font size set to 62.5%)<\/li>\n\n\n\n<li>Max width important values<\/li>\n\n\n\n<li>Added Custom Body and Title font sizes (Works with Font Hero)<\/li>\n<\/ul>\n\n\n\n<pre title=\"Tailwind Config\" class=\"wp-block-code\"><code class=\"\">module.exports = {\n  theme: {\n    colors: {\n      'transparent': 'transparent',\n      'current': 'currentColor',\n      'bg': '#ffffff',\n      'bg-alt': '#F6F6F6',\n      'text': '#000000',\n      'text-atl': '#404040',\n      'brand': '#352FE7',\n      'action': '#2AEBDC',\n      'action-hover': '#2AEBDC',\n      'action-text': '#2AEBDC',\n    },\n\n    spacing: {\n      none: '0',\n      '0': '0',\n      xs:     'var(--space-size--xs)',\n      sm:     'var(--space-size--sm)',\n      base:   'var(--space-size--base)',\n      lg:     'var(--space-size--lg)',\n      xl:     'var(--space-size--xl)',\n      xxl:    'var(--space-size--xxl)',\n      giga:   'var(--space-size--giga)',\n    },\n\n    fontSize: {\n      sm:     'var(--font-size--sm)',\n      base:   'var(--font-size--base)',\n      lg:     'var(--font-size--lg)',\n      xl:     'var(--font-size--xl)',\n      xxl:    'var(--font-size--xxl)',\n      giga:   'var(--font-size--giga)',\n    },\n\n    maxWidth: {\n      'container-narrow': '800px',\n      'container':        '1440px',\n      'container-wide':   '1680px',\n      'card':             '400px',\n    },\n\n    extend: {\n      fontFamily: {\n        display: ['Title', ' ui-sans-serif', 'system-ui', '-apple-system', 'Arial', 'sans-serif'],\n        body: ['Body', ' ui-sans-serif', 'system-ui', '-apple-system', 'Arial', 'sans-serif'],\n      },\n    },\n\n  },\n  plugins: [],\n}<\/code><\/pre>\n\n\n\n<pre title=\"Global CSS\" class=\"wp-block-code\"><code class=\"\">html{\n  font-size: 62.5%;\n}\n\n:root{\n  \/* space *\/\n  \/* \n  https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/www.fluid-type-scale.com\/calculate?minFontSize=8&minWidth=400&minRatio=1.8&maxFontSize=10&maxWidth=1600&maxRatio=2&steps=xsm%2Csm%2Cbase%2Clg%2Cxl%2Cxxl%2Cgiga&baseStep=base&prefix=space-size-&decimals=2&previewFont=Inter \n  *\/\n  --space-size--xsm: clamp(2.47px, 0vw + 2.46px, 2.5px);\n--space-size--sm: clamp(4.44px, 0.05vw + 4.26px, 5px);\n--space-size--base: clamp(8px, 0.17vw + 7.33px, 10px);\n--space-size--lg: clamp(14.4px, 0.47vw + 12.53px, 20px);\n--space-size--xl: clamp(25.92px, 1.17vw + 21.23px, 40px);\n--space-size--xxl: clamp(46.66px, 2.78vw + 35.54px, 80px);\n--space-size--giga: clamp(83.98px, 6.33vw + 58.64px, 160px);\n\n\n  \/* font-size *\/\n  \/* \n  https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/www.fluid-type-scale.com\/calculate?minFontSize=14&minWidth=400&minRatio=1.414&maxFontSize=16&maxWidth=1600&maxRatio=1.618&steps=sm%2Cbase%2Clg%2Cxl%2Cxxl%2Cgiga&baseStep=base&prefix=font-size-&decimals=2&previewFont=Inter \n  *\/\n\n  --font-size--sm: clamp(9.9px, 0vw + 9.91px, 9.89px);\n--font-size--base: clamp(14px, 0.17vw + 13.33px, 16px);\n--font-size--lg: clamp(19.8px, 0.51vw + 17.77px, 25.89px);\n--font-size--xl: clamp(27.99px, 1.16vw + 23.36px, 41.89px);\n--font-size--xxl: clamp(39.58px, 2.35vw + 30.18px, 67.77px);\n--font-size--giga: clamp(55.97px, 4.47vw + 38.07px, 109.66px);\n\n}\n\n@tailwind base;\n@tailwind components;\n@tailwind utilities;<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Prepared config files to get you started fast with best practices<\/p>\n","protected":false},"author":1,"featured_media":46581,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Tailwind Starter Config files - Code DPlugins","description":"Prepared config files to get you started fast with best practices"},"_slim_seo_primary_term_category":0,"_slim_seo_primary_term_post_tag":0,"footnotes":""},"categories":[78],"tags":[],"dpc_library":[],"class_list":["post-46028","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tailwind"],"_links":{"self":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46028","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=46028"}],"version-history":[{"count":0,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/46028\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media\/46581"}],"wp:attachment":[{"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=46028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=46028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=46028"},{"taxonomy":"dpc_library","embeddable":true,"href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/code.dplugins.com\/wp-json\/wp\/v2\/dpc_library?post=46028"}],"curies":[{"name":"wp","href":"https:\/\/summer-heart-0930.chufeiyun1688.workers.dev:443\/https\/api.w.org\/{rel}","templated":true}]}}