setup tailwind and fonts

This commit is contained in:
Aoife
2021-04-06 13:37:15 -04:00
parent 689225a650
commit f2873b0514
5 changed files with 53 additions and 2 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"atDirectives": [
{
"name": "@tailwind",
"description": "Use the @tailwind directive to insert Tailwinds `base`, `components`, `utilities`, and `screens` styles into your CSS.",
"references": [
{
"name": "Tailwinds “Functions & Directives” documentation",
"url": "https://tailwindcss.com/docs/functions-and-directives/#tailwind"
}
]
},
{
"name": "@apply",
"description": "Use @apply to inline any existing utility classes into your own custom CSS.",
"references": [
{
"name": "Tailwinds “Functions & Directives” documentation",
"url": "https://tailwindcss.com/docs/functions-and-directives/#apply"
}
]
},
{
"name": "@layer",
"description": "Use the @layer directive to tell Tailwind which \"bucket\" a set of custom styles belong to. Valid layers are a base, components, and utilities.",
"references": [
{
"name": "Tailwinds “Functions & Directives” documentation",
"url": "https://tailwindcss.com/docs/functions-and-directives/#layer"
}
]
}
]
}
+3
View File
@@ -0,0 +1,3 @@
{
"css.customData": [".vscode/css_custom_data.json"],
}
+1 -1
View File
@@ -12,7 +12,7 @@
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Roboto:wght@100;300;400;500;700&display=swap"
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,300;0,400;0,600;0,700;0,900;1,400&display=swap"
rel="stylesheet"
/>
<!--
+9
View File
@@ -17,3 +17,12 @@ code {
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer components {
.btn {
@apply mx-4 my-1 bg-gray-100 rounded-md w-32 h-10 border-transparent hover:bg-gray-200;
}
.btn:disabled {
@apply opacity-60 hover:bg-gray-100 cursor-default;
}
}
+6 -1
View File
@@ -2,7 +2,12 @@ module.exports = {
purge: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'],
darkMode: false, // or 'media' or 'class'
theme: {
extend: {},
extend: {
fontFamily: {
sans:
'"Source Sans Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',
},
},
},
variants: {
extend: {},