Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5, the second time around #455

Open
wants to merge 230 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 commits
Select commit Hold shift + click to select a range
5880964
Init lerna, move all modules to dir
johno Nov 1, 2017
75d5184
Update all the src css docs to be md formatted
johno Nov 1, 2017
1ca2dd5
Improve build step for monorepo
johno Nov 1, 2017
d154f09
Propose docs implementation using markdown css comments
johno Dec 27, 2017
fd516df
Begin markdown-ifying all the docs
johno Mar 7, 2018
4d3b406
Bump deps, reference src tachyons file
johno Mar 7, 2018
c8aa37c
Add elements docs
johno Mar 7, 2018
78fd58c
Add images blurb
johno Mar 7, 2018
5d0f52d
Begin implementing with next
johno Mar 7, 2018
defed9c
Update docs readme
johno Mar 7, 2018
3e42d03
Add css-table package
johno Mar 7, 2018
8774a2c
Spike out table of styles build
johno Mar 7, 2018
3c5cc4b
Format table properly
johno Mar 7, 2018
824b407
Properly format font family
johno Mar 7, 2018
cff7e00
Skip debug grid
johno Mar 7, 2018
6a743cc
Sort table
johno Mar 7, 2018
03b3c96
Add James Greig's WIP FAQ
johno Mar 7, 2018
8c08f28
Add in a couple layout docs
johno Mar 7, 2018
a973689
Add docs layout hoc
johno Mar 7, 2018
8f8cd6c
Add live editor support
johno Mar 7, 2018
aa7481f
Linkify all elements pages, add docs dir in pages
johno Mar 7, 2018
991b2dd
Add position sticky, specify 5.0.0-1
johno Mar 7, 2018
5e1ceb4
Add table of styles per module as metadata
johno Mar 7, 2018
6009847
Tweak formatting
johno Mar 7, 2018
86ea3ab
Add in footer and a few more content sections
johno Mar 8, 2018
2680c91
Spike out tachyons-nudge
johno Mar 8, 2018
6fbd759
Add more flexbox support, build nudge package
johno Mar 8, 2018
36000ad
Tweak getting started section
johno Mar 8, 2018
8076a92
Add responsive docs
johno Mar 8, 2018
eca111b
Tighten up wording
johno Mar 8, 2018
34f68af
Add reference
johno Mar 8, 2018
930a6bb
Fix typo
johno Mar 8, 2018
b9bf9cc
Spike out class naming page
johno Mar 8, 2018
6b65bb9
Nuke WIP, it's close enough for now
johno Mar 8, 2018
5f36429
Spike out a scales doc
johno Mar 8, 2018
aaa7414
Add tachyons cheatsheet to readme
johno Mar 8, 2018
315d65b
Tweak directory structure, document it
johno Mar 8, 2018
e80dc35
Tweak documentation on docs app
johno Mar 8, 2018
8605b5f
Spike out blog with initial v5 post
johno Mar 8, 2018
9c484b0
Blog post updates
johno Mar 8, 2018
d870b51
Spike out gradients addon
johno Mar 8, 2018
8a0fffc
Add gradients page
johno Mar 8, 2018
a82a697
Update responsive docs for s, m, l viewports
johno Mar 8, 2018
19725bc
Add debug docs
dperrera Mar 9, 2018
698a4ad
add debug grid docs
dperrera Mar 9, 2018
cf8ccec
add grid docs
dperrera Mar 9, 2018
f31c610
Add positioning docs
johno Mar 9, 2018
6b7de6d
add MDN Reference
dperrera Mar 9, 2018
09e91eb
match reference formatting
dperrera Mar 9, 2018
efe87e0
Add edit url to some pages
johno Mar 9, 2018
547e7b6
Clean up addons linking
johno Mar 9, 2018
128154f
Spike out blog page, remove some things from index
johno Mar 9, 2018
9691505
Build latest css
johno Mar 9, 2018
e907a9a
Update class naming docs
johno Mar 9, 2018
f08163d
Class naming docs tweaks
johno Mar 9, 2018
c8a2d51
Add docs nav
johno Mar 9, 2018
27f7d87
Implement contextual nav
johno Mar 9, 2018
3846973
Highlight active menu item
johno Mar 9, 2018
f7c7361
Tweak responsive docs
johno Mar 9, 2018
9521885
Begin self documenting related modules
johno Mar 9, 2018
5897664
Show all code lines in examples
johno Mar 9, 2018
26441ca
Improve breakpoints doc, add addon badge
johno Mar 9, 2018
d2eff61
Style table of styles table
johno Mar 9, 2018
366b5e5
Add some more styling
johno Mar 9, 2018
c59e1f2
Break out primary installation docs into its own page
johno Mar 9, 2018
9f3ccd7
Nuke carbonads and google analytics for now
johno Mar 9, 2018
6208ffb
Tweak nav, stub intro docs, add back quote
johno Mar 9, 2018
c4c828d
Add z index docs
johno Mar 9, 2018
2bcb178
Add opacity docs
johno Mar 9, 2018
b0e9acc
Add border docs
johno Mar 9, 2018
4d59dd1
Add relative/absolute blurb, thanks timn
johno Mar 9, 2018
ee6c586
Add height docs
johno Mar 10, 2018
6305758
Add explicit cssgradient.io link
johno Mar 10, 2018
b52e423
Port hover documentation
rosew Mar 10, 2018
4f1334b
add flexbox page
dperrera Mar 10, 2018
b0caa94
Add box-sizing docs
dperrera Mar 10, 2018
a7c12a7
add spacing docs
dperrera Mar 10, 2018
fe21768
add floats page
dperrera Mar 10, 2018
b842810
add clearfix docs
dperrera Mar 10, 2018
d65ef32
add display docs
dperrera Mar 10, 2018
d8cfdf8
add widths docs
dperrera Mar 10, 2018
326f889
add max-widths docs
dperrera Mar 10, 2018
785e40e
add position docs
dperrera Mar 10, 2018
b65e481
Fix docs html typo
johno Mar 10, 2018
d2c090a
Add basic nudge docs for v5 addon
johno Mar 10, 2018
2b7cdae
Begin adding small breakpoint through opacity module
johno Mar 10, 2018
b8f470b
Add small breakpoint to remaining modules, run build
johno Mar 10, 2018
17e55e7
add xray page
dperrera Mar 10, 2018
4ae5590
add dangerouslySetInnerHTML for Carbon Ads
dperrera Mar 10, 2018
4a35845
Port theme docs except animations
rosew Mar 10, 2018
6d87674
add gallery page
dperrera Mar 10, 2018
0cdb79f
move page title from Head component to Layout attribute
dperrera Mar 10, 2018
a8d79d6
add Container component and fix media queries
dperrera Mar 10, 2018
a981bc9
Add missing background-size css docs
johno Mar 10, 2018
4eb4de7
Docs alignment
dperrera Mar 11, 2018
710d18a
Run build after latest css docs updates
johno Mar 11, 2018
0e6ac5e
Factor out nav links
mattrothenberg Mar 11, 2018
59ca3b8
Cleanup markup and alignment
mattrothenberg Mar 11, 2018
9626fcd
Add aspect ratios docs and new examples component
johno Mar 11, 2018
0fa32cf
Add deploy script
johno Mar 11, 2018
29dd3b7
Update doc deployment script
johno Mar 11, 2018
e9da077
Change scripts order
johno Mar 11, 2018
284e1d8
Clean up scripts
johno Mar 11, 2018
46928a7
Add other section to nav
johno Mar 11, 2018
0e61013
Begin experimenting with separate grid docs section
johno Mar 11, 2018
6215dc1
Begin spiking out new grid docs
johno Mar 11, 2018
52f5c7d
Expand upon floats grid docs
johno Mar 11, 2018
2357f40
Add table based grid docs
johno Mar 11, 2018
0d8dcb8
Add responsive grid docs
johno Mar 11, 2018
9ffe93a
Add alert component for legacy grid docs
johno Mar 11, 2018
ede7856
Add some basic nesting docs
johno Mar 11, 2018
3f26259
Ensure all layout docs specify their metadata
johno Mar 11, 2018
b1a6ade
Add neat little example for z index
johno Mar 11, 2018
1da53e2
Run linter
johno Mar 11, 2018
70b36ff
Set box shadow to none
johno Mar 12, 2018
24fa80c
Add tachyons-animate package and _animate.css to /src
anater Mar 12, 2018
8a4ace6
Begin updating to new version of MDX
johno Mar 12, 2018
8e86802
Update editor component
johno Mar 12, 2018
3856144
Spike in most of content wrapper changes
johno Mar 12, 2018
20bc289
Finish port to latest MDX
johno Mar 12, 2018
ad83c70
Responsive opacities addon
johno Mar 13, 2018
044efec
Add first pass of utilities docs
johno Mar 13, 2018
1dcbd7b
Add utilities module docs
johno Mar 13, 2018
42e7518
Background size docs tweaks
johno Mar 13, 2018
6d9db40
Add fun Tachyons console.log
johno Mar 13, 2018
bff1107
Add tachyons-opacity-responsive docs
johno Mar 13, 2018
5f367b0
Add tachyons-opacity-responsive to build
johno Mar 13, 2018
cc21dbd
Fix typo
johno Mar 13, 2018
fddc90a
Updates to display and border radius docs
johno Mar 13, 2018
949265c
Add component for md blockquotes
johno Mar 13, 2018
9d4b9ca
Improve interactive examples
johno Mar 13, 2018
fb20cec
Fix class name in box-sizing examples
johno Mar 13, 2018
9ef26a1
Bump up docs font color to black-80
johno Mar 13, 2018
448422c
Make widths docs more compact
johno Mar 13, 2018
bf94090
Add more references to widths docs
johno Mar 13, 2018
13a30df
Add nested-copy-large-leading class
johno Mar 13, 2018
e097270
Add long form content stub to nav
johno Mar 13, 2018
9cbe697
Add border radius to example buttons
johno Mar 13, 2018
e2caab0
Implement direction module
johno Mar 14, 2018
53697da
Better name package build script
johno Mar 14, 2018
7970a55
Run packages build
johno Mar 14, 2018
27e506b
Fix nested-copy-large-leading bug
johno Mar 14, 2018
995d137
Setup the structure for the typography pages, but the md files still …
rosew Mar 14, 2018
b0c571a
Auto generated file left out of my last commit
rosew Mar 14, 2018
67a5f1c
class => className, run prettier
johno Mar 15, 2018
ae87975
More typography documents
rosew Mar 15, 2018
de47dc8
Move build scripts to build dir
johno Mar 17, 2018
2ead5c5
More typography documentation. There will be some variation from the …
rosew Mar 18, 2018
780a22a
First pass at a new color palette
Mar 18, 2018
2c58914
New border-radius scale
Mar 18, 2018
cf8ee0d
Remove a for all, to more closely match css naming pattern and basscss.
Mar 18, 2018
d3491dd
Update the max-widths scale to be a bit more granular at the top end.
Mar 18, 2018
6421cde
Remove 33 and 34. Reflects a depracated pattern.
Mar 18, 2018
c5633ca
Remove table group classes
Mar 18, 2018
7ba97a4
Remove fs-normal
Mar 18, 2018
8cad996
Remove color reference. Remove old gray scale.
Mar 18, 2018
719485d
Update type scale. Reverse scale direction from v1-4.
Mar 18, 2018
e5dd57e
Remove word-break module
Mar 18, 2018
56d9769
Fix syntax error in colors and build css.
Mar 18, 2018
c31ff7b
Fix a few colors typos
johno Mar 19, 2018
cad4cf7
Implement basic component loader
johno Mar 19, 2018
499cded
Use mdx-js libraries
johno Mar 23, 2018
9900c82
Move over all components
johno Mar 17, 2018
f1b9aee
Add tachyons-component-loader dep
johno Mar 19, 2018
a27d98e
Begin building out component docs generator
johno Mar 19, 2018
31f5603
Implement basic source file generation
johno Mar 19, 2018
2e6d58e
Ignore component loader in module build
johno Mar 23, 2018
e20bd71
Improve component build script
johno Mar 23, 2018
20cfb6b
Implement new basic component page
johno Mar 23, 2018
46b5366
Fix typos
johno Mar 23, 2018
cadcd4a
Begin messing around with a css reference section
johno Mar 13, 2018
ee95131
Add initial src reference for a module
johno Mar 13, 2018
6db175e
Add reference to nav constants
johno Mar 13, 2018
8134ce7
Don't show header or footer for css reference
johno Mar 13, 2018
43e5873
Finish basic css reference spike
johno Mar 13, 2018
573b449
Add missing dep
johno Mar 24, 2018
6950401
Bump deps, regenerate data
johno Mar 24, 2018
d789f4e
Dynamically grab readme docs from src css
johno Mar 24, 2018
67d7db3
Finish wiring in basic css reference functionality
johno Mar 24, 2018
02c34f8
Nuke tmp file
johno Mar 24, 2018
907caa9
Use next document component to remedy FOUC
johno Mar 24, 2018
f142cd6
Nuke cruft
johno Mar 24, 2018
43fba75
Ensure max height is persisted, improve format script
johno Mar 24, 2018
83e1567
Move static generated json files to data dir
johno Mar 24, 2018
2645a13
Fix typos
Apr 10, 2018
9174c11
Apply color variable names. Fix typo gray scale.
Apr 10, 2018
81cc3f4
Add psuedo skin classes with variables applied
Apr 10, 2018
e7e14b4
Remove tachyons-animate
anater Apr 18, 2018
3aeddc8
Add back tachyons-animate without .git
anater Apr 18, 2018
6d62240
Moved `.ml-auto` and `.mr-auto` into _spacing instead of _utilities
dangayle Apr 23, 2018
cd64422
Adds vertical margin auto classes
lowmess May 5, 2018
07617d1
Change 'tracked' to 'ls'
lowmess May 12, 2018
b177ec2
Bump lerna
johno Apr 2, 2018
7e2d93c
Generate more components
johno May 5, 2018
05de928
Update CDN link
johno Jul 13, 2018
4369eb7
Improve css reference
johno Jul 13, 2018
82dae8d
Titleize reference nav
johno Jul 13, 2018
0d5ae37
Don't reverse type scale
johno Jul 13, 2018
2df8fca
v7.0.1-0
johno Jul 13, 2018
b1a3b59
v7.0.1-1
johno Jul 13, 2018
7c71c77
Update white-space with new ws- prefix
johno Jul 13, 2018
0b97b82
7.0.1-1
johno Jul 13, 2018
a2fcb21
Begin updating to latest Tachyons version
johno Jul 13, 2018
2425b36
Bump deps for docs, remove yarn.lock
johno Jul 13, 2018
8d48b07
Break out docs and site into own dirs
johno Jul 13, 2018
49806b6
Nuke unneeded file
johno Jul 13, 2018
f0d0350
Nuke more old files
johno Jul 13, 2018
a8efa39
Clean up order of package
johno Jul 13, 2018
0feb4bb
Run build
johno Jul 13, 2018
aacc8c6
7.0.1-3
johno Jul 13, 2018
462fc0d
7.0.1-4
johno Jul 13, 2018
ea41253
Spike out colors page
johno Jul 13, 2018
2dce0d1
Fix white color
florianbouvot Jul 25, 2018
149c437
Resolve Issue #586 (missing gray-9 and gray-10)
Oct 2, 2018
eba6e1d
Align whitespace.
Oct 2, 2018
d44a2f1
Revert builds.
Oct 2, 2018
eb8e45e
Run build for latest version
johno Oct 2, 2018
31b1fd5
7.0.1-5
johno Oct 2, 2018
36e745f
Rename ls back to tracked
johno Nov 10, 2018
1c0027c
Bump deps, run build
johno Nov 10, 2018
ba72a13
Add publish beta script
johno Nov 10, 2018
71376f6
Add prepare script
johno Nov 10, 2018
6100b06
Update docs
johno Nov 10, 2018
de2f1cf
Bump version in lerna.json
johno Nov 10, 2018
9ebdb51
Ensure build runs before beta publish
johno Nov 10, 2018
30a9970
Fix docs site deps
johno Nov 10, 2018
d393181
Fix imports, add build script
johno Nov 10, 2018
8b3c3ca
Make now.json file top level
johno Nov 10, 2018
3a9df1b
Version packages independently
johno Nov 11, 2018
64589a2
Bump deps in all packages
johno Nov 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules
npm-debug.log
.DS_STORE
*.swp
.next
9 changes: 5 additions & 4 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{
"name": "tachyons",
"description": "Functional CSS for humans",
"description": "Functional css for humans",
"homepage": "https://tachyons.io",
"main": "css/tachyons.css",
"license": "MIT",
"authors": [
"mrmrs"
"mrmrs",
"johno"
],
"license": "MIT",
"keywords": [
"css",
"design",
"system",
"responsive",
"design"
],
"homepage": "http://tachyons.io",
"ignore": [
"**/.*",
"node_modules",
Expand Down
24 changes: 24 additions & 0 deletions build/colors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const fs = require('fs')
const postcss = require('postcss')
const getVariables = require('postcss-get-variables')

const css = fs.readFileSync('src/_colors.css', 'utf8')

module.exports = async () => {
await postcss([
getVariables(c => {
const colors = Object.entries(c).reduce((acc, [name, value]) => {
if (name === 'transparent') {
return acc
}

name = /^(black|white)-/.test(name) ? name : name.replace('-', '')
acc[name] = value

return acc
}, {})

fs.writeFileSync('site/data/colors.json', JSON.stringify(colors, null, 2))
})
]).process(css)
}
37 changes: 37 additions & 0 deletions build/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const fs = require('fs')
const globby = require('globby')
const stripComments = require('strip-css-comments')

require('./colors')()

const pattern = [
'src/**/*.css',
'!src/tachyons.css',
'!src/_debug-children.css',
'!src/_debug-grid.css',
'!src/_nested.css',
'!src/_normalize.css',
'!src/_media-queries.css',
'!src/_module-template.css',
'!src/_code.css' // TODO: make this a module
]

const mq = stripComments(
fs.readFileSync('src/_media-queries.css', 'utf8'),
{ preserve: false }
)

globby(pattern)
.then(paths => paths.forEach(processPackage))
.catch(console.error)

const processPackage = path => {
const name = path.replace('src/_', '').replace('.css', '')
let css = fs.readFileSync(path, 'utf8')

if (/@media/.test(css)) {
css = `${mq}${css}`
}

fs.writeFileSync(`packages/tachyons-${name}/src/tachyons-${name}.css`, css)
}
43 changes: 43 additions & 0 deletions build/tables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
const fs = require('fs')
const cssTable = require('css-table')

const srcFile = 'src/tachyons.css'
const css = fs.readFileSync(srcFile, 'utf8')
const options = {
from: srcFile
}

const writeTable = async () => {
const data = await cssTable(css, options)

const selectors = data
.sort((a, b) => {
if (a.moduleName < b.moduleName) return -1;
if (a.moduleName > b.moduleName) return 1;
return 0;
})
.map(d => {
const moduleName = d.moduleName.split('/_')[1].replace('.css', '')

if (moduleName === 'normalize' || moduleName === 'debug-grid') {
return
}

return [
d.selector.replace(/\n/g, '<br />'),
d.declarations.join(';<br />').replace(/\n/g, '<br />') + ';',
`[${moduleName}](https://npmjs.com/packages/tachyons-${moduleName})`
].join(' | ')
})

fs.writeFileSync('docs/table-of-styles.md',
`# Table of Styles

Here is a list of each class in Tachyons along with corresponding styles.

Selectors | Declarations | Module
--------- | ------------ | ------
${selectors.filter(Boolean).join('\n')}`)
}

writeTable()
Loading