Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/sass/uswds/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

html {
scroll-behavior: smooth;
background: pink;
}

// COLORS
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import React from "react";
import ReactDOM from "react-dom/client";
import { Provider } from "react-redux";
import { createBrowserRouter, createRoutesFromElements, Route, RouterProvider, Link, Navigate } from "react-router-dom";
import "@uswds/uswds";
import store from "./store";

// USWDS
import "./uswds/css/styles.css";
import "../sass/uswds/styles.scss";
// import "./uswds/css/styles.css";
// NOTE: Uncomment the following line to include the USWDS JavaScript but breaks DatePicker
// import "./uswds/js/uswds.min.js";

Expand Down
8 changes: 8 additions & 0 deletions frontend/vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ export default defineConfig(({ mode }) => {
build: {
outDir: "build"
},
css: {
preprocessorOptions: {
// file: "./sass/uswds/styles.scss", // default: "styles.css
scss: {
includePaths: ["./node_modules/@uswds", "./node_modules/@uswds/uswds/packages"]
}
}
},
server: {
host: true,
port: 3000,
Expand Down