Tachyons Versions Save

Functional css for humans

4.4.1

7 years ago

Well 4.4.0 had a small bug in it so that got quickly patched and we are now ready to drop 4.4.1.

tl;dr

  • Tweaked some colors & added some colors
  • Added a width class for calc(100%/3) called w-third
  • Added two base min-height classes for 100% and 100vh
  • Added new module for setting background-position
  • Made the shadow-hover animation more performant. 60fps ftw.
  • Added button reset in form module
  • Better focus styles on links
  • Hover utilities all cover focus now as well

Colors

Before
screen shot 2016-09-15 at 4 20 28 pm
After
screen shot 2016-09-15 at 4 22 43 pm

Let’s paint some bikesheds! After some tweaks to color values and adding a couple colors we’ve expanded the amount of available color combinations that meet accessibility standards for contrast ratio. We now have reds and greens that you can use white or black text on (amongst others)

The breakdown:

  • 14 More AA Large combos
  • 26 More AA combos
  • 26 More AAA combos

Widths & Heights

  • Added a width utility for setting elements to a third of it’s parent element.
  • Added min-height classes set to 100% and 100vh. They can be found in the heights module

Background-position

New module! We now have some background-position utilities for setting images to be aligned to the top, right, left, or bottom of the image (while centered on the opposite axis). Check out the source code in src/_background-position.css

A11y

Some of the hover classes didn’t also have focus attached. That is now fixed. In addition, we have added some outlines on links when they are focused along with a button reset class for form elements. All of these should aid in making a better experience when using the keyboard for navigation. Shout out to @jasonli for helping with that.

60fps

After reading an excellent blog post about how to make your box-shadow animations more performant, I had to refactor the shadow-hover class a bit. It should now be a bit smoother and run at 60fps.

The Future

We’re working on (a bunch of things) but a huge priority is building a custom generator for everyone to use. It will allow you to set your own colors, type scale, media queries, and more to generate your own version of tachyons. It seems that changing the values of tachyons is proving to be a painpoint and we definitely don’t want it to be. Hopefully we’ll have something soon!

Cheers.

The Tachyons Team

4.3.0

7 years ago

4.3.0

New features

Aspect ratios

Added a bunch of aspect ratios for fluid embeds. You can now choose between

  • 1:1 Square
  • 6:4
  • 4:6
  • 8:5
  • 5:8
  • 4:3
  • 3:4
  • 16:9
  • 9:16
  • 7:5
  • 5:7

Allows you to make things like this where you don't know each image is the same size but you know the desired aspect ratio: http://tachyons.io/components/collections/movies/index.html

border-colors.css has more comments!

Added some more comments to the border-colors file. Makes it more consistent with the rest of the docs.

Athelas is so gorgeous

Athelas is pretty great and it's a system font on mac so I added it to the available font-family classes. I've recently been redesigning http://mrmrs.io/writing with it. I definitely stole the idea from @Jxnblk screen shot 2016-09-07 at 4 56 15 pm

Bugs

Ugh bugs. I thought I fixed something. It doesn't seem I did. NOW we should have some smooth animations with the grow class. Fingers crossed.

4.2.1

7 years ago

This patch fixes a small bug in class naming and also adds comments to the css partials in the src/ directory.

After making another pass through the source code I was horrified to find how many glaring inconsistencies there were in the code comments for each module. Especially regarding naming systems. It never ceases to amaze me how bad past me is at writing code.

In an effort to not have poorly documented code I woke up this morning, made some coffee, and tried to make the comments more clear and more consistent. They aren't perfect yet. But they are less glaringly awful. I hope.

Bug fix

There were two different classes called striped--moon-gray which is very silly because they were set to different values. So that has been fixed. No more duplicative classes and the class striped--light-gray has been added in as originally intended.

4.3 news

Next up I'll be adding some more table striping utilities along with some additional aspect ratios used for fluid embeds.

Cheers.

v4.2.0

7 years ago

Without a doubt this is my favorite release ever. We fixed a couple of bugs and also added some new goodness.

Additions

#####_debug-grid.css Added some classes to help enable lining things up. If you place the .grid-debug class on an element you'll get an 8px grid on the background with a slightly transparent blue line. To get a 16px grid use the class .grid-debug-16

8px grid
screen shot 2016-09-01 at 5 39 03 pm
16px grid
screen shot 2016-09-01 at 5 45 05 pm

vh units

Added some classes for setting the height of the element based off of the screen height as opposed to the height of the parent. You can now use vh-100, vh-75, vh-50, or vh-25 to set the height of an element to 100, 75, 50, or 25% of the screen height. Shout out to @yoshuawuyts for the recommendation.

outlines

You can now place a 1px outline on an element with the class="outline" it will be set to the currentColor of the element.

line-height

Made some slight tweaks to line-height values. lh-copy is now set to 1.5 and lh-title is set to 1.25. This will hopefully help people worried about baseline grids a little bit.

Added a class called br-pill that makes things look like pills with a border-radius of 9999px. Shout out to @matthewmueller for getting this in.

screen shot 2016-09-01 at 7 10 51 pm

Bug Fixes

Animation fix

The .glow class was not animating properly. This has been fixed. hover

Filename consistency

Renamed _debug_children.css to _debug-children.css to follow the naming pattern of the other partials

Until next time

I think that is about it. Thanks to everyone who has given feedback and helped out with docs fixes. It's all really helpful.

4.1.3

7 years ago

4.1.3

They're back

We accidentally were not including the images partial or the z-index partial in the main build. The 4.1.3 fixes this 100% completely embarrassing mistake by including them back in.

If you use the CDN link you can find the new version at

https://npmcdn.com/[email protected]/css/tachyons.min.css

v4.1.1

7 years ago

Originally tachyons was a monolithic repo. Eventually along the way I started splitting things up onto NPM as when I went to work at other places sometimes I would only need a handful of modules and if a clients build system allowed for it I could just grab them quickly from npm and add them to the outputted css. I was separately maintaining publishing the mono repo and the modules though.

When @johnotander and I started working on v4 one of the things we talked about was having a single source of truth and making it easier to keep everything in sync. So we would install through npm and then copy files over to source. This then caused a new problem, each module needed to be fully encapsulated - so when we would copy them from node_modules to src - we left in a lot of duplicated variables and custom media props. As Tachyons is all about immutability - this seems not the best :)

In practice this caused us to have a bug where the custom media props in our npm modules were being overridden somewhere and this was largely invisible to everyone.

So in the interest of simplicity, we've removed all the tachyons modules as dependencies and have removed the function of copying over the modules from the node_modules directory. Instead we'll just maintain this as an encapsulated project. I think it's more simple this way and I don't think the added complexity was worth keeping the npm copy function around for this version of the project.

TL;DR THE BIG CHANGES

  • We've removed all the duplicate variable and custom-media-prop declarations.
  • We removed tachyons modules as dev dependencies

Note: Nothing has changed in the outputted css besides some comments. As no new features were added, this is really just a patch to fix a bug.

v4.1.0

7 years ago

4.1.0

giphy-43

Since we launched v4 we've had a number of small bug fixes and a few slight additions to some modules. Largely things are still the same but there are a couple of new things to play with.

Changes

  • The flex box module now supports display: inline-flex and flex-direction: row
  • Hovers now includes a shadow on hover
  • Hover module now duplicates all hover styles for focus as well #a11y
  • There was a file in src called _gradients.css that should not have been there so it was deleted. It wasn't compiled into the css so you shouldn't notice any changes.
  • License has changed to ISC
  • Removed duplicate flexbox dependency declaration in package.json
  • Updated comments in flex box module because apparently I forgot to add notes on the media query extensions

More to come soon. We've started working on v5 which won't be too much of a big change. The breaking part is that we are changing media queries. Right now -ns covers both the -m and -l range. -m is a scoped media query that cuts off when large kicks in. We're going to change it so that there aren't any max-widths in the media queries at all and everything will be completely min-width based. It's the difference between:

v4

@custom-media --breakpoint-not-small screen and (min-width: 30em);
@custom-media --breakpoint-medium screen and (min-width: 30em) and (max-width: 60em);
@custom-media --breakpoint-large screen and (min-width: 60em);

v5

@custom-media --breakpoint-medium screen and (min-width: 30em);
@custom-media --breakpoint-large screen and (min-width: 60em);

We're also going to remove the copy from npm to src functionality in the mono repo. We'll still keep all the modules on npm individually, but we'll just manage this as it's own package. After some user testing / observation / feedback / and dogfooding - we're going to try and make this even more stripped back in simple in regards to the infrastructure. v5 won't likely include any fancy new features. Just some refined goodness as we continue to learn. We'll keep you updated.

Cheers,

@mrmrs & @johnotander

v4.0.1

7 years ago

giphy-24

After a lot of fun chats and hard work with @johnotander - we're excited to pull tachyons out of beta and officially release v4.

A few notable changes:

  • Reintroduces colors
  • Flexbox support
  • More typographic utilities
  • Some changes to class names