All notable changes to this project will be documented in this file.
- Move the
Props
CSS writing into aProps.CSS
func, so it can be used in isolation of theStyle
struct. This allows for theProps
CSS to be used in other contexts, such as in astyle
attribute in HTML. - Don't write empty values in the CSS string. eg:
.test{}
will not be written if there are no props to write.
Added new props:
- align-content
- align-self
- border-collapse
Expanded props:
- justify-content
- justify-items
- justify-self
- Allow a color to be mixed with another color.
- Change
props.Color
to allow any type of golang'scolor.Color
interface.
Added new variables:
- extra sizes
Added new variables:
- colors
- sizes
Added new props:
- max-height
- max-width
Added new units:
- vh
- vw
Added new props:
- font-family (basic defaults from tailwindcss)
- text-decoration-color
- text-decoration-line
- text-decoration-style
- text-decoration-thickness
- text-indent
- text-transform
- text-underline-offset
- text-wrap
Added new props:
- column-gap
- row-gap
- box-sizing
- list-style-position
- list-style-type
- vertical-align
- z-index
- visibility
- opacity
Added explicit CustomProp type and make CustomProps a slice to preserve ordering.
Added support for custom props.
Added new props:
- cursor
- border-bottom-left-radius
- border-bottom-right-radius
- border-top-left-radius
- border-top-right-radius
Added new props:
- bottom
- left
- right
- top
- gap
- text-overflow
- white-space
Added licensing information.
Initial release.