The League of Legends Math UI is React Component library made to look similar to the League of Legends client. It is used in the LoL Math website
Import the global CSS file and fonts into your project.
All CSS modules have the lol
layer. You can use @layer
to control the
order of the CSS. This also means that the CSS is less specific than "normal",
global CSS. This is useful for overriding the default styles (e.g. with
tailwind).
In tailwind 3, the @tailwind directives are compiled away in the final CSS. You
can use the @layer
directive to control the order of the CSS. Here, we put the
tailwind base
tailwind directive in a tailwind-base
layer, ensuring that any
styles in the lol
layer are more specific than the tailwind base styles.
We do the same for the components
layer. The utilities
layer is left as is.
That way you can use tailwind utilities to style the components with
classNames
.
Optionally, you can use the tailwind plugin to get League of Legends colors and fonts.