tailwindcss-rails 2.0.3-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-DEPENDENCIES +26 -0
  3. data/MIT-LICENSE +20 -0
  4. data/README.md +38 -0
  5. data/Rakefile +14 -0
  6. data/app/assets/fonts/Inter-italic.alternates.var.woff2 +0 -0
  7. data/app/assets/fonts/Inter-italic.cyrillic.var.woff2 +0 -0
  8. data/app/assets/fonts/Inter-italic.extra.var.woff2 +0 -0
  9. data/app/assets/fonts/Inter-italic.greek.var.woff2 +0 -0
  10. data/app/assets/fonts/Inter-italic.latin-ext.var.woff2 +0 -0
  11. data/app/assets/fonts/Inter-italic.latin.var.woff2 +0 -0
  12. data/app/assets/fonts/Inter-italic.symbols.var.woff2 +0 -0
  13. data/app/assets/fonts/Inter-italic.vietnamese.var.woff2 +0 -0
  14. data/app/assets/fonts/Inter-roman.alternates.var.woff2 +0 -0
  15. data/app/assets/fonts/Inter-roman.cyrillic.var.woff2 +0 -0
  16. data/app/assets/fonts/Inter-roman.extra.var.woff2 +0 -0
  17. data/app/assets/fonts/Inter-roman.greek.var.woff2 +0 -0
  18. data/app/assets/fonts/Inter-roman.latin-ext.var.woff2 +0 -0
  19. data/app/assets/fonts/Inter-roman.latin.var.woff2 +0 -0
  20. data/app/assets/fonts/Inter-roman.symbols.var.woff2 +0 -0
  21. data/app/assets/fonts/Inter-roman.vietnamese.var.woff2 +0 -0
  22. data/app/assets/stylesheets/inter-font.css +194 -0
  23. data/app/assets/stylesheets/tailwind.css +295158 -0
  24. data/exe/aarch64-linux/tailwindcss +0 -0
  25. data/exe/tailwindcss +41 -0
  26. data/lib/generators/tailwindcss/controller/controller_generator.rb +9 -0
  27. data/lib/generators/tailwindcss/controller/templates/view.html.erb.tt +4 -0
  28. data/lib/generators/tailwindcss/mailer/mailer_generator.rb +9 -0
  29. data/lib/generators/tailwindcss/mailer/templates/view.html.erb.tt +5 -0
  30. data/lib/generators/tailwindcss/mailer/templates/view.text.erb.tt +3 -0
  31. data/lib/generators/tailwindcss/scaffold/scaffold_generator.rb +34 -0
  32. data/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt +43 -0
  33. data/lib/generators/tailwindcss/scaffold/templates/edit.html.erb.tt +8 -0
  34. data/lib/generators/tailwindcss/scaffold/templates/index.html.erb.tt +14 -0
  35. data/lib/generators/tailwindcss/scaffold/templates/new.html.erb.tt +7 -0
  36. data/lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt +22 -0
  37. data/lib/generators/tailwindcss/scaffold/templates/show.html.erb.tt +15 -0
  38. data/lib/install/Procfile.dev +2 -0
  39. data/lib/install/application.tailwind.css +13 -0
  40. data/lib/install/dev +9 -0
  41. data/lib/install/tailwind.config.js +21 -0
  42. data/lib/install/tailwindcss.rb +52 -0
  43. data/lib/tailwindcss/engine.rb +17 -0
  44. data/lib/tailwindcss/upstream.rb +15 -0
  45. data/lib/tailwindcss/version.rb +3 -0
  46. data/lib/tailwindcss-rails.rb +6 -0
  47. data/lib/tasks/build.rake +20 -0
  48. data/lib/tasks/clobber.rake +8 -0
  49. data/lib/tasks/install.rake +6 -0
  50. metadata +107 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a02f4490cc443d488245e2f23084ee4c6db6d96b113162d4a90e674e0a4711e5
4
+ data.tar.gz: 9a15c7bcf6f209776feac43f5ec697830a08eb2f7b17b254b004f9cd09eae7bf
5
+ SHA512:
6
+ metadata.gz: c74ccc990a140038c1d8e44253f0f1e5d270370adb19b660baa03c3c7c9c72f2556e722c2e124ed9d04f53e9cb71005075b245c3298afedeb3329164719c3913
7
+ data.tar.gz: 8bbfd32b1d76a18aa30ea2c46d688df4113d69cf299c290c27c8b4b456a750c4ea7f32471299cc2d2252b969c6d4aee568372c0df2227849d3cc40e3258a1f96
@@ -0,0 +1,26 @@
1
+ tailwindcss-rails may redistribute executables from the https://github.com/tailwindlabs/tailwindcss project
2
+
3
+ The license for that software can be found at https://github.com/tailwindlabs/tailwindcss/blob/master/LICENSE which is reproduced here for your convenience:
4
+
5
+ MIT License
6
+
7
+ Copyright (c) Adam Wathan <adam.wathan@gmail.com>
8
+ Copyright (c) Jonathan Reinink <jonathan@reinink.ca>
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2020 David Heinemeier Hansson
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # Tailwind CSS for Rails
2
+
3
+ [Tailwind CSS](https://tailwindcss.com) is a utility-first CSS framework packed with classes like flex, pt-4, text-center and rotate-90 that can be composed to build any design, directly in your markup.
4
+
5
+ This gem wraps [the standalone executable version](https://tailwindcss.com/blog/standalone-cli) of the Tailwind CSS 3 framework. These executables are platform specific, so there are actually separate underlying gems per platform, but the correct gem will automatically be picked for your platform. Supported platforms are Linux x64, macOS arm64, macOS x64, and Windows x64. (Note that due to this setup, you must install the actual gems – you can't pin your gem to the github repo.)
6
+
7
+ You can customize the Tailwind build through the `config/tailwind.config.js` file, just like you would if Tailwind was running in a traditional node installation. All the first-party plugins are supported.
8
+
9
+ The installer will create your Tailwind input file in `app/assets/stylesheets/application.tailwind.css`. This is where you import the plugins you want to use, and where you can setup your custom `@apply` rules. When you run `rails tailwindcss:build`, this input file will be used to generate the output in `app/assets/builds/tailwind.css`. That's the output CSS that you'll include in your app (the installer automatically configures this, alongside the Inter font as well).
10
+
11
+ If you need to use a custom input or output file, you can run `bundle exec tailwindcss` to access the platform-specific executable, and give it your own build options.
12
+
13
+ When you're developing your application, you want to run Tailwind in watch mode, so changes are automatically reflected in the generated CSS output. You can do this either by running `rails tailwindcss:watch` as a separate process, or by running `./bin/dev` which uses [foreman](https://github.com/ddollar/foreman) to starts both the Tailwind watch process and the rails server in development mode.
14
+
15
+
16
+ ## Installation
17
+
18
+ With Rails 7 you can generate a new application preconfigured with Tailwind by using `--css tailwind`. If you're adding Tailwind later, you need to:
19
+
20
+ 1. Run `./bin/bundle add tailwindcss-rails`
21
+ 2. Run `./bin/rails tailwindcss:install`
22
+
23
+
24
+ ## Building in production
25
+
26
+ The `tailwindcss:build` is automatically attached to `assets:precompile`, so before the asset pipeline digests the files, the Tailwind output will be generated.
27
+
28
+
29
+ ## Conflict with sassc-rails
30
+
31
+ Tailwind uses modern CSS features that are not recognized by the `sassc-rails` extension that was included by default in the Gemfile for Rails 6. In order to avoid any errors like `SassC::SyntaxError`, you must remove that gem from your Gemfile.
32
+
33
+
34
+ ## License
35
+
36
+ Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
37
+ Tailwind CSS is released under the [MIT License](https://opensource.org/licenses/MIT).
38
+ The Inter font is released under the [SIL Open Font License, Version 1.1](https://github.com/rsms/inter/blob/master/LICENSE.txt).
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require "bundler/setup"
2
+
3
+ require "bundler/gem_tasks"
4
+
5
+ require "rake/testtask"
6
+
7
+ Rake::TestTask.new(:test) do |t|
8
+ t.libs << 'test'
9
+ t.pattern = 'test/**/*_test.rb'
10
+ t.verbose = false
11
+ t.warning = true
12
+ end
13
+
14
+ task default: :test
@@ -0,0 +1,194 @@
1
+ /*
2
+ *= link_directory ../fonts
3
+ */
4
+
5
+ @font-face {
6
+ font-family: 'Inter var';
7
+ font-style: italic;
8
+ font-weight: 100 900;
9
+ font-display: swap;
10
+ src: url('Inter-italic.extra.var.woff2') format('woff2');
11
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
12
+ font-named-instance: 'Italic';
13
+ }
14
+ /* alternates */
15
+ @font-face {
16
+ font-family: 'Inter var';
17
+ font-style: italic;
18
+ font-weight: 100 900;
19
+ font-display: swap;
20
+ src: url('Inter-italic.alternates.var.woff2') format('woff2');
21
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
22
+ font-named-instance: 'Italic';
23
+ }
24
+ /* symbols */
25
+ @font-face {
26
+ font-family: 'Inter var';
27
+ font-style: italic;
28
+ font-weight: 100 900;
29
+ font-display: swap;
30
+ src: url('Inter-italic.symbols.var.woff2') format('woff2');
31
+ unicode-range: U+20DD-20DF,U+2190-219A,U+21A9-21AB,U+21B0-21B2,U+21B3-21B6,U+21BA-21BC,U+21D0,U+21D2,U+21D4,U+21DE-21E0,U+21E4-21E6,U+21E7,U+21EA,U+2303,U+2305,U+2318,U+2325-2328,U+232B,U+2380,U+2387,U+238B,U+23CE-23D0,U+2460-2469,U+24B6-24D0,U+24EA,U+25A0-25A3,U+25B2-25B4,U+25B6-25B8,U+25BA-25BE,U+25C0-25C2,U+25C4-25C8,U+25CB,U+25CF,U+25EF,U+2600,U+2605-2607,U+263C,U+2661,U+2665,U+26A0,U+2713,U+2717,U+2756,U+2764,U+2780-2789,U+27F5-27FB,U+2B06,U+2B12-2B14,U+2B1C,U+E000,U+E12B-E164,U+1F130-1F14A,U+1F850,U+1F852;
32
+ font-named-instance: 'Italic';
33
+ }
34
+
35
+ /* extra */
36
+ @font-face {
37
+ font-family: 'Inter var';
38
+ font-style: italic;
39
+ font-weight: 100 900;
40
+ font-display: swap;
41
+ src: url('Inter-italic.extra.var.woff2') format('woff2');
42
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
43
+ font-named-instance: 'Italic';
44
+ }
45
+ /* alternates */
46
+ @font-face {
47
+ font-family: 'Inter var';
48
+ font-style: italic;
49
+ font-weight: 100 900;
50
+ font-display: swap;
51
+ src: url('Inter-italic.alternates.var.woff2') format('woff2');
52
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
53
+ font-named-instance: 'Italic';
54
+ }
55
+ /* symbols */
56
+ @font-face {
57
+ font-family: 'Inter var';
58
+ font-style: italic;
59
+ font-weight: 100 900;
60
+ font-display: swap;
61
+ src: url('Inter-italic.symbols.var.woff2') format('woff2');
62
+ unicode-range: U+20DD-20DF,U+2190-219A,U+21A9-21AB,U+21B0-21B2,U+21B3-21B6,U+21BA-21BC,U+21D0,U+21D2,U+21D4,U+21DE-21E0,U+21E4-21E6,U+21E7,U+21EA,U+2303,U+2305,U+2318,U+2325-2328,U+232B,U+2380,U+2387,U+238B,U+23CE-23D0,U+2460-2469,U+24B6-24D0,U+24EA,U+25A0-25A3,U+25B2-25B4,U+25B6-25B8,U+25BA-25BE,U+25C0-25C2,U+25C4-25C8,U+25CB,U+25CF,U+25EF,U+2600,U+2605-2607,U+263C,U+2661,U+2665,U+26A0,U+2713,U+2717,U+2756,U+2764,U+2780-2789,U+27F5-27FB,U+2B06,U+2B12-2B14,U+2B1C,U+E000,U+E12B-E164,U+1F130-1F14A,U+1F850,U+1F852;
63
+ font-named-instance: 'Italic';
64
+ }
65
+ /* cyrillic */
66
+ @font-face {
67
+ font-family: 'Inter var';
68
+ font-style: italic;
69
+ font-weight: 100 900;
70
+ font-display: swap;
71
+ src: url('Inter-italic.cyrillic.var.woff2') format('woff2');
72
+ unicode-range: U+0400-049E,U+04A0-0500,U+052F,U+20B4,U+2116,U+2DFF,U+A69F;
73
+ font-named-instance: 'Italic';
74
+ }
75
+ /* greek */
76
+ @font-face {
77
+ font-family: 'Inter var';
78
+ font-style: italic;
79
+ font-weight: 100 900;
80
+ font-display: swap;
81
+ src: url('Inter-italic.greek.var.woff2') format('woff2');
82
+ unicode-range: U+0370-0378,U+037A-0380,U+0384-038B,U+038C,U+038E-03A2,U+03A3-03E2,U+03F0-0400,U+1F00-1F16,U+1F18-1F1E,U+1F20-1F46,U+1F48-1F4E,U+1F50-1F58,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7E,U+1F80-1FB5,U+1FB6-1FC5,U+1FC6-1FD4,U+1FD6-1FDC,U+1FDD-1FF0,U+1FF2-1FF5,U+1FF6-1FFF;
83
+ font-named-instance: 'Italic';
84
+ }
85
+ /* vietnamese */
86
+ @font-face {
87
+ font-family: 'Inter var';
88
+ font-style: italic;
89
+ font-weight: 100 900;
90
+ font-display: swap;
91
+ src: url('Inter-italic.vietnamese.var.woff2') format('woff2');
92
+ unicode-range: U+0102-0104,U+0110-0112,U+0128-012A,U+0168-016A,U+01A0-01A2,U+01AF-01B1,U+1EA0-1EFA,U+20AB;
93
+ font-named-instance: 'Italic';
94
+ }
95
+ /* latin-ext */
96
+ @font-face {
97
+ font-family: 'Inter var';
98
+ font-style: italic;
99
+ font-weight: 100 900;
100
+ font-display: swap;
101
+ src: url('Inter-italic.latin-ext.var.woff2') format('woff2');
102
+ unicode-range: U+0100-0149,U+014A-01C4,U+01C5-0250,U+0259,U+1E00-1F00,U+2020,U+20A0-20AC,U+20AD-20C0,U+2113,U+2C7C,U+2C7F,U+A7FF;
103
+ font-named-instance: 'Italic';
104
+ }
105
+ /* latin */
106
+ @font-face {
107
+ font-family: 'Inter var';
108
+ font-style: italic;
109
+ font-weight: 100 900;
110
+ font-display: swap;
111
+ src: url('Inter-italic.latin.var.woff2') format('woff2');
112
+ unicode-range: U+0000-007F,U+00A0-0100,U+0131,U+0152-0154,U+02BB-02BD,U+02C6,U+02DA,U+02DC,U+2000-200C,U+2010-2028,U+202F-2060,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF;
113
+ font-named-instance: 'Italic';
114
+ }
115
+ /* extra */
116
+ @font-face {
117
+ font-family: 'Inter var';
118
+ font-style: normal;
119
+ font-weight: 100 900;
120
+ font-display: swap;
121
+ src: url('Inter-roman.extra.var.woff2') format('woff2');
122
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
123
+ font-named-instance: 'Regular';
124
+ }
125
+ /* alternates */
126
+ @font-face {
127
+ font-family: 'Inter var';
128
+ font-style: normal;
129
+ font-weight: 100 900;
130
+ font-display: swap;
131
+ src: url('Inter-roman.alternates.var.woff2') format('woff2');
132
+ unicode-range: U+E000,U+E002-E081,U+E093-E097,U+E0A5-E0E7,U+E0F3-E11D,U+E11E-E165,U+EE01,U+F6C3;
133
+ font-named-instance: 'Regular';
134
+ }
135
+ /* symbols */
136
+ @font-face {
137
+ font-family: 'Inter var';
138
+ font-style: normal;
139
+ font-weight: 100 900;
140
+ font-display: swap;
141
+ src: url('Inter-roman.symbols.var.woff2') format('woff2');
142
+ unicode-range: U+20DD-20DF,U+2190-219A,U+21A9-21AB,U+21B0-21B2,U+21B3-21B6,U+21BA-21BC,U+21D0,U+21D2,U+21D4,U+21DE-21E0,U+21E4-21E6,U+21E7,U+21EA,U+2303,U+2305,U+2318,U+2325-2328,U+232B,U+2380,U+2387,U+238B,U+23CE-23D0,U+2460-2469,U+24B6-24D0,U+24EA,U+25A0-25A3,U+25B2-25B4,U+25B6-25B8,U+25BA-25BE,U+25C0-25C2,U+25C4-25C8,U+25CB,U+25CF,U+25EF,U+2600,U+2605-2607,U+263C,U+2661,U+2665,U+26A0,U+2713,U+2717,U+2756,U+2764,U+2780-2789,U+27F5-27FB,U+2B06,U+2B12-2B14,U+2B1C,U+E000,U+E12B-E164,U+1F130-1F14A,U+1F850,U+1F852;
143
+ font-named-instance: 'Regular';
144
+ }
145
+ /* cyrillic */
146
+ @font-face {
147
+ font-family: 'Inter var';
148
+ font-style: normal;
149
+ font-weight: 100 900;
150
+ font-display: swap;
151
+ src: url('Inter-roman.cyrillic.var.woff2') format('woff2');
152
+ unicode-range: U+0400-049E,U+04A0-0500,U+052F,U+20B4,U+2116,U+2DFF,U+A69F;
153
+ font-named-instance: 'Regular';
154
+ }
155
+ /* greek */
156
+ @font-face {
157
+ font-family: 'Inter var';
158
+ font-style: normal;
159
+ font-weight: 100 900;
160
+ font-display: swap;
161
+ src: url('Inter-roman.greek.var.woff2') format('woff2');
162
+ unicode-range: U+0370-0378,U+037A-0380,U+0384-038B,U+038C,U+038E-03A2,U+03A3-03E2,U+03F0-0400,U+1F00-1F16,U+1F18-1F1E,U+1F20-1F46,U+1F48-1F4E,U+1F50-1F58,U+1F59,U+1F5B,U+1F5D,U+1F5F-1F7E,U+1F80-1FB5,U+1FB6-1FC5,U+1FC6-1FD4,U+1FD6-1FDC,U+1FDD-1FF0,U+1FF2-1FF5,U+1FF6-1FFF;
163
+ font-named-instance: 'Regular';
164
+ }
165
+ /* vietnamese */
166
+ @font-face {
167
+ font-family: 'Inter var';
168
+ font-style: normal;
169
+ font-weight: 100 900;
170
+ font-display: swap;
171
+ src: url('Inter-roman.vietnamese.var.woff2') format('woff2');
172
+ unicode-range: U+0102-0104,U+0110-0112,U+0128-012A,U+0168-016A,U+01A0-01A2,U+01AF-01B1,U+1EA0-1EFA,U+20AB;
173
+ font-named-instance: 'Regular';
174
+ }
175
+ /* latin-ext */
176
+ @font-face {
177
+ font-family: 'Inter var';
178
+ font-style: normal;
179
+ font-weight: 100 900;
180
+ font-display: swap;
181
+ src: url('Inter-roman.latin-ext.var.woff2') format('woff2');
182
+ unicode-range: U+0100-0149,U+014A-01C4,U+01C5-0250,U+0259,U+1E00-1F00,U+2020,U+20A0-20AC,U+20AD-20C0,U+2113,U+2C7C,U+2C7F,U+A7FF;
183
+ font-named-instance: 'Regular';
184
+ }
185
+ /* latin */
186
+ @font-face {
187
+ font-family: 'Inter var';
188
+ font-style: normal;
189
+ font-weight: 100 900;
190
+ font-display: swap;
191
+ src: url('Inter-roman.latin.var.woff2') format('woff2');
192
+ unicode-range: U+0000-007F,U+00A0-0100,U+0131,U+0152-0154,U+02BB-02BD,U+02C6,U+02DA,U+02DC,U+2000-200C,U+2010-2028,U+202F-2060,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+FEFF;
193
+ font-named-instance: 'Regular';
194
+ }