Skip to content

Commit

Permalink
load tailwind in its own file to prevent constant compiling, causing …
Browse files Browse the repository at this point in the history
…very slow refresh
  • Loading branch information
jakewheeler committed Oct 30, 2024
1 parent 589bf69 commit fc7760b
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 113 deletions.
114 changes: 114 additions & 0 deletions src/app/custom-styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
.text-balance {
text-wrap: balance;
}
}

h1 {
margin: 2rem 0 2rem 0;
font-size: larger;
}

:root {
--background: #ffffff;
--foreground: #171717;
--header-teal: #224a58;
--background-light-blue: #dcecf3;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
/* color: var(--foreground);
background: var(--background); */
font-family: Arial, Helvetica, sans-serif;
}



.usa-logo a {
color: #ffffff;
}

.bg-background-teal {
background-color: var(--header-teal);
}

@media (min-width: 64em) {
.usa-logo {
margin-top: 2rem;
margin-bottom: 2rem;
}
}

.height-100 {
height: 100%;
}

.flex-vertical-center {
display: flex;
align-items: center !important;
vertical-align: center;
height: auto;
}

.flex-center {
text-align: center;
}

.usa-section--light-blue {
background-color: var(--background-light-blue);
}

h1 {
font-family: 'Source Sans Pro', sans-serif;
font-size: 40px;
font-weight: 700;
line-height: 50.28px;
text-align: left;
}

h2 {
color: #224a58;
font-family: 'Source Sans Pro', sans-serif;
font-size: 2rem;
font-style: normal;
font-weight: 700;
line-height: normal;
}

ul {
margin-bottom: 1em;
margin-top: 1em;
line-height: 1.5;
padding-left: 3ch;
list-style: disc;
}
ul:last-child {
margin-bottom: 0;
}
ul,
ol {
margin-top: 0.25em;
}
ul li {
margin-bottom: 0.25em;
max-width: 68ex;
}
ul li:last-child {
margin-bottom: 0;
}

p {
margin-top: 1rem;
margin-bottom: 1rem;
}
113 changes: 0 additions & 113 deletions src/app/globals.scss
Original file line number Diff line number Diff line change
@@ -1,115 +1,2 @@
@forward "uswds-settings";
@forward "uswds";


@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
--header-teal: #224a58;
--background-light-blue: #dcecf3;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
/* color: var(--foreground);
background: var(--background); */
font-family: Arial, Helvetica, sans-serif;
}

@layer utilities {
.text-balance {
text-wrap: balance;
}
}
h1 {
margin: 2rem 0 2rem 0;
font-size: larger;
}

.usa-logo a {
color: #ffffff;
}

.bg-background-teal {
background-color: var(--header-teal);
}

@media (min-width: 64em) {
.usa-logo {
margin-top: 2rem;
margin-bottom: 2rem;
}
}

.height-100 {
height: 100%;
}

.flex-vertical-center {
display: flex;
align-items: center !important;
vertical-align: center;
height: auto;
}

.flex-center {
text-align: center;
}

.usa-section--light-blue {
background-color: var(--background-light-blue);
}

h1 {
font-family: 'Source Sans Pro', sans-serif;
font-size: 40px;
font-weight: 700;
line-height: 50.28px;
text-align: left;
}

h2 {
color: #224a58;
font-family: 'Source Sans Pro', sans-serif;
font-size: 2rem;
font-style: normal;
font-weight: 700;
line-height: normal;
}

ul {
margin-bottom: 1em;
margin-top: 1em;
line-height: 1.5;
padding-left: 3ch;
list-style: disc;
}
ul:last-child {
margin-bottom: 0;
}
ul,
ol {
margin-top: 0.25em;
}
ul li {
margin-bottom: 0.25em;
max-width: 68ex;
}
ul li:last-child {
margin-bottom: 0;
}

p {
margin-top: 1rem;
margin-bottom: 1rem;
}
1 change: 1 addition & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Footer from './components/Footer';
import USABanner from './components/UsaBanner';
import { basePath } from './utils/constants';
import './globals.scss';
import './custom-styles.css';

export const metadata: Metadata = {
title: 'DIBBS Site',
Expand Down

0 comments on commit fc7760b

Please sign in to comment.