All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
pe
andps
inLayout
mapping to incorrectpadding-left
andpadding-right
- instances of non logical x-axis property CSS updated to logical properties in all plugins (margins, paddings, left/right and borders)
- add
ms-
,me-
,ps-
,pe-
,start-
andend-
toSpacing
plugin (to matchLayout
plugin). ((CSS logical properties)[https://tailwindcss.com/blog/tailwindcss-v3-3#simplified-rtl-support-with-logical-properties])
- Make sure the
GridLayout
andGridGap
plugins are working with prefix.
- Changed
Typography
plugin to allow any font/text property, which also fixes the overriding caveat of being limited to a preset list of properties
- added
text-transform
toTypography
plugin defaults
- fixed
Typography
plugin generating excessive CSS variables for smaller CSS output
- Fix typo in frontend config, this is a breaking change as this require updating config file when upgrading to this version :
For Spacing now use "arbitraries" instead of "arbritraries"
- Underline - Improve how underline variants are generated
- Fix usage of a global Prefix with the plugins
For example by setting up
a17-
as prefix, the generated classes will look like this :.container => .a17-container .f-heading-01 => .a17-f-heading-01
npm audit
updated browser sync- updated node version to
20.11.0
Typography
plugin updated to fix broken typography CSS variable names when making CSS changes whilst using Vite to compile Previously, the responsive CSS variables could get erroneous duplicates of the type style name in the variable name - eg:The behavior seemed only to manifest itself in Vite 5. An updated deep clone and an update to property naming fixes the issue.@media (min-width: 990px) :root { --f-h1--f-h1-font-size: 3rem; } }
- Update dependencies - TailwindCSS >2.4.x
- ran
npm update
- add
ms-
,me-
,ps-
,pe-
,start-
andend-
toLayout
plugin. ((CSS logical properties)[https://tailwindcss.com/blog/tailwindcss-v3-3#simplified-rtl-support-with-logical-properties])
- make vw calc variants demo more clear
- layout and typography tests updated
- ran eslint/prettier
- ran
npm update
- refactor typography generation to use CSS variables to allow overridable type
Readme updated
BackgroundFill
- draws a 100vw background colour pseudo layerStrokeFull
- draws a 100vw stroke pseudo layer
Re-arranged index.html
to group plugins.
Docs have been added to this repo, using GitHub pages, see /docs/README.md
.
- update
ApplyColorVariables
to handle-
in token names better - e2bbb75
Can now handle:
"color": {
"tokens": {
"grey-950": "#0D0C0C",
"grey-900": "#1B1918",
"grey-850": "#282525",
"grey-700": "#ADADAD",
"grey-100": "#D3D3D3",
"green": "#4BB543",
"red": {
"100": "#D3B2C0",
"400": "#EF4637",
"500": "#EE3523",
"700": "#772848",
"800": "#6C002C"
},
"purple": "#793CB8",
"purple-light": "rgba(121, 60, 184, 0.1)"
},
"text": {
"text": "grey-700",
"go": "green",
"danger": "red-400",
"tag": "purple",
"tip": "purple-light",
"custom": "#00f"
}
}
Previously the text-tip
would be incorrectly set to var(--purple)
and not var(--purple-light)
as the ApplyColorVariables
func would find purple
before purple-light
.
- Clean and lock dependencies version - f844563
Merged PRs:
- Spacing Group Updates - 5
- Update test snapshot and docs css with tailwind-3.1.6 - 4
- Update Github link - 3
- Prettier and ESLint upgrades - 2
- Added gap and positioning properties to spacing plugin - 5
- Added prettier and eslint as npm scripts - 2
- Tailwind version of docs updated to latest - 5
- Container and Typography tests updated - 4
- Update Github link in docs 3
- Upgraded prettier and eslint (and corresponding plugins) to latest stable versions - 2
- Set
trailingComma = es5
, as it looked like that was already been used in most places - 2
- Removed deprecated config from
.eslintrc
- 2
Adds FullBleedScroller
, InteractionMediaQueries
and Scrollbar
to src/index
New plugins, FullBleedScroller
, InteractionMediaQueries
and Scrollbar
, updates to Container
to make it more useful and vw
additions to Layout
.
FullBleedScroller
- easy full bleedoverflow-x: auto
scrolling containersInteractionMediaQueries
- adds interaction based media queries, think targeting devices with hover capabilityScrollbar
- scrollbar styling, unifies the CSS standard and non-standard scrollbar styling
Container
has been refactored to- allow nesting of
.container
.breakout
controls gutters to be inline with.container
if need be.container-reset
and.breakout-reset
styles added
- allow nesting of
Layout
has additionalvw
calc based width/spacing options
Updated Underline
plugin to add utility classes from Tailwind config theme colours and a dedicated them underline colour list.
Underline
plugin- adds utility classes from
theme.colors
(not name spaced) - adds utility classes from
theme.underlineColor
(not name spaced) - retains utility classes from
theme.textColor
,theme.borderColor
andtheme.backgroundColor
(name spaced as before)
- adds utility classes from
docs/Underline
- updated to document changes to plugin
Documentation ported from dedicated repository to live inside the main plugins repository.
- Added
docs
folder with a collection of PHP files, Tailwind config files and CSS files. And aREADME
to explain how to run the documentation locally. - Added code of conduct
package.json
now as dependencies for generating the Tailwind documentation@area17/a17-tailwind-plugins
to use the plugins in the docs- updated versions of
postCSS
andtailwindcss
- added
browser-sync
and updated version ofdotenv
- Sample config file have been moved to the
docs
folder, these are now actual config files styling the documentation build
Updated SpacingTokens
plugin to auto generate spacing tokens.
SpacingTokens
plugin re-written- can now auto generate a spacing token scale based on multiples of 5
- generates arbitrary 0 - 10px spaces
- can specify the scale to use
- can specify other arbitrary values
- can still specify a full scale as before (no breaking change)
Added GridLayout
plugin
GridLayout
plugin - generates CSS grid utility classes to set elements onto the design grid
Removed console.log
from GridLine
GridLine
plugin, removedconsole.log
Removed references to old Git repository
- readme
- removed reference to old sample files
- changelog
- removed git diff urls
Fixed bug with GridLine
CSS generation which could affect grid lines on last row of complex grid line setups
- split comma separated selectors in
GridLine
plugin into their own selectors so that survive CSS purging better with JIT
Added CssInJs and Components plugins.
CssInJs
plugin - allows you to pass through CSS from your Tailwind configComponents
plugin - allows you to generate component CSS from your Tailwind config
Added Underline plugin.
Underline
plugin - for modern CSS text underline styling
Refactored Layout plugin, generates more classes which are closer aligned to Tailwind classes.
- Layout plugin has been totally re-factored
- added ability to nest
- fractional values can now also be used, eg:
w-1/2-cols
- now generates Tailwind like
w-N-cols
type classes for widths m?-
margin classes for push/pulls:ml-N-cols
,mr-N-cols
,mx-N-cols
,-ml-N-cols
,-mr-N-cols
,-mx-N-cols
p?-
padding classes:pl-N-cols
,pr-N-cols
,px-N-cols
- margins, paddings and positioning assume added inner gutters, a full series of gutter-less versions are also generated
- the generated class names in the Layout plugin have been changed to align them closer to Tailwind. See the migration notes
- Change Layout plugin to use
addComponents
vsaddUtilities
to allow theflex-direction
to be overwritten with the Tailwind classes
Fixes some responsive bugs with Layout
and adds pull
and left
/right
classes for absolute positioning.
Layout
plugin- using Tailwind native
prefix()
function to fix responsive bugs when usingcols-container
only at larger breakpoints - no longer makes
cols-0
and correctly makes a class for the largest column
- using Tailwind native
Layout
plugin- added
pull
,pull-r
,left
andright
classes for more layout options based on design columns
- added
package.json
updated to include repository and homepage info.
Readme updated to point to remote docs: http://tailwind-plugins.dev.area17.com/ Moved repo to GitHub.
Adds refactored RatioBox
and GridLine
plugins
- fix sample config JSON fixed breakpoint outer gutter
- fix sample config include and color token name
- added refactored RatioBox with new expandable box and ratio freer classes
- add refactored gridline plugin
- allows prefix and more consistent results across breakpoints
- Prefixing classes with
prefix
option intailwind.config.js
- issue in
ApplyColorVariables
when colors are undefined which would break builds
- Spacing group plugin now always outputs breakpoint spacing info in correct breakpoint order (not the order a user specifies breakpoints in their config)
- Added spacing tokens plugin to convert spacing tokens from
px
torem
- Typography plugin converts
px
torem
- Spacing plugin converts
px
torem
- Spacing tokens added to tailwind config sample
- Spacing tokens and spacing groups split out in config JSON
- Removed console log
- Using dashes in the color name when declaring colors in a js object was breaking the var output
Large refactor, rewrite and added new things.
- remove dependency on lowdash
- now uses
frontend.config.json
for set up - adds
GridLine
plugin GridGap
uses CSS variables- adds
RatioBox
plugin - no longer uses
getFirstBp
utility - adds color token CSS variables
Fix nested .cols-container
element left margin in Layout
plugin
Layout
plugin: only immediate child[class*="cols-"]
inside of.cols-container
get agutter
margin to stop.cols-container
's inside of.cols-N
getting theirmargin-left
reset
Initial public release