# Amplify UI Theme This package generates the core CSS used by Amplify UI for the web on any framework. Amplify UI uses CSS to share styling across web frameworks ## Usage ### CSS Amplify UI exports 2 CSS files: - `styles.css` contains all the styling needed for Amplify UI - `theme.css` contains only the default theme CSS variables You can import the styles in a CSS file: ```css @import '@aws-amplify/ui/styles.css'; ``` You can also import it in the Javascript: ```javascript import '@aws-amplify/ui/styles.css'; ``` ### Typescript / Javascript In addition to the static CSS, this package exports: - `defaultTheme`: The default `Theme` object which Amplify UI uses for its default theme. - `createTheme`: A function that takes theme customizations and returns a `Theme` object which contains the CSS needed to theme Amplify UI components ```javascript import { createTheme, defaultTheme } from '@aws-amplify/ui'; export const theme = createTheme({ tokens: { colors: { brand: { primary: defaultTheme.colors.blue, }, }, }, // customize the breakpoints breakpoints: {}, // customize overrides like dark mode or responsive theming overrides: [{}], }); // theme.css returns a string which can be written to a CSS file or placed inline in a