Skip to content

Commit 3a55407

Browse files
authored
Merge pull request #233 from ember-learn/upgrade-tailwind
Upgrade tailwind
2 parents a61d13b + 6d3730d commit 3a55407

File tree

7 files changed

+145
-537
lines changed

7 files changed

+145
-537
lines changed

addon/tailwind/config/tailwind.js

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
'use strict';
2-
31
import colors from './colors';
42
import screens from './screens';
53
import fonts from './fonts';
64
import textSizes from './text-sizes';
75
import fontWeights from './font-weights';
86
import leading from './line-height';
97
import tracking from './letter-spacing';
8+
import textColors from './text-colors';
9+
import backgroundColors from './background-colors';
10+
import backgroundSize from './background-size';
1011
import borderWidths from './border-widths';
12+
import borderColors from './border-colors';
1113
import borderRadius from './border-radius';
1214
import width from './width';
1315
import height from './height';
@@ -33,10 +35,11 @@ export default {
3335
fontWeights,
3436
leading,
3537
tracking,
36-
textColors: colors,
37-
backgroundColors: colors,
38+
textColors,
39+
backgroundColors,
40+
backgroundSize,
3841
borderWidths,
39-
borderColors: Object.assign({ default: colors['grey-light'] }, colors),
42+
borderColors,
4043
borderRadius,
4144
width,
4245
height,
@@ -101,6 +104,22 @@ export default {
101104
zIndex: ['responsive'],
102105
},
103106

107+
/*
108+
|-----------------------------------------------------------------------------
109+
| Plugins https://tailwindcss.com/docs/plugins
110+
|-----------------------------------------------------------------------------
111+
|
112+
| Here is where you can register any plugins you'd like to use in your
113+
| project. Tailwind's built-in `container` plugin is enabled by default to
114+
| give you a Bootstrap-style responsive container component out of the box.
115+
|
116+
| Be sure to view the complete plugin documentation to learn more about how
117+
| the plugin system works.
118+
|
119+
*/
120+
plugins: [
121+
],
122+
104123
/*
105124
|-----------------------------------------------------------------------------
106125
| Advanced Options https://tailwindcss.com/docs/configuration#options

addon/tailwind/modules.css

Lines changed: 3 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,5 @@
1-
/**
2-
* This injects Tailwind's base styles, which is a combination of
3-
* Normalize.css and some additional base styles.
4-
*
5-
* You can see the styles here:
6-
* https://github.com/tailwindcss/tailwindcss/blob/master/css/preflight.css
7-
*
8-
* If using `postcss-import`, you should import this line from it's own file:
9-
*
10-
* @import "./tailwind-preflight.css";
11-
*
12-
* See: https://github.com/tailwindcss/tailwindcss/issues/53#issuecomment-341413622
13-
*/
14-
@import "./tailwind-preflight.css";
15-
16-
/**
17-
* Here you would add any of your custom component classes; stuff that you'd
18-
* want loaded *before* the utilities so that the utilities could still
19-
* override them.
20-
*
21-
* Example:
22-
*
23-
* .btn { ... }
24-
* .form-input { ... }
25-
*
26-
* Or if using a preprocessor or `postcss-import`:
27-
*
28-
* @import "components/buttons";
29-
* @import "components/forms";
30-
**/
31-
1+
@import "tailwindcss/preflight";
2+
@import "tailwindcss/components";
323
@import "./components/*.css";
33-
34-
35-
/**
36-
* This injects all of Tailwind's utility classes, generated based on your
37-
* config file.
38-
*
39-
* If using `postcss-import`, you should import this line from it's own file:
40-
*
41-
* @import "./tailwind-utilities.css";
42-
*
43-
* See: https://github.com/tailwindcss/tailwindcss/issues/53#issuecomment-341413622
44-
*/
45-
46-
@import "./tailwind-utilities.css";
47-
48-
/**
49-
* Here you would add any custom utilities you need that don't come out of the
50-
* box with Tailwind.
51-
*
52-
* Example :
53-
*
54-
* .bg-pattern-graph-paper { ... }
55-
* .skew-45 { ... }
56-
*
57-
* Or if using a preprocessor or `postcss-import`:
58-
*
59-
* @import "utilities/background-patterns";
60-
* @import "utilities/skew-transforms";
61-
**/
4+
@import "tailwindcss/utilities";
625
@import "./utilities/*.css";

addon/tailwind/tailwind-preflight.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

addon/tailwind/tailwind-utilities.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ module.exports = {
3333
'node_modules/ember-cli-addon-docs/public',
3434
'tests/dummy/public'
3535
]
36-
},
37-
'ember-cli-tailwind': {
38-
buildTarget: 'addon'
3936
}
4037
},
4138

@@ -56,6 +53,9 @@ module.exports = {
5653
latestVersionName: LATEST_VERSION_NAME,
5754
deployVersion: 'ADDON_DOCS_DEPLOY_VERSION',
5855
searchTokenSeparator: "\\s+"
56+
},
57+
'ember-cli-tailwind': {
58+
shouldIncludeStyleguide: false
5959
}
6060
};
6161

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"ember-cli-htmlbars-inline-precompile": "^1.0.2",
4242
"ember-cli-sass": "7.1.3",
4343
"ember-cli-string-helpers": "^1.7.0",
44-
"ember-cli-tailwind": "^0.4.1",
44+
"ember-cli-tailwind": "^0.6.1",
4545
"ember-code-snippet": "^2.2.0",
4646
"ember-component-css": "^0.3.5",
4747
"ember-concurrency": "^0.8.16",

0 commit comments

Comments
 (0)