create-tina-app 0.1.4 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/{examples/tina-tailwind-sidebar-demo/LICENSE → LICENSE} +1 -26
  2. package/dist/index.js +19 -11
  3. package/{examples/tina-tailwind-sidebar-demo/next-env.d.ts → dist/util/preRunChecks.d.ts} +1 -3
  4. package/package.json +11 -10
  5. package/CHANGELOG.md +0 -38
  6. package/examples/tina-tailwind-sidebar-demo/.tina/PageTemplate.ts +0 -427
  7. package/examples/tina-tailwind-sidebar-demo/.tina/ThemeTemplate.ts +0 -42
  8. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_graphql.json +0 -4180
  9. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_lookup.json +0 -68
  10. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/_schema.json +0 -851
  11. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/config/schema.json +0 -479
  12. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/schema.gql +0 -391
  13. package/examples/tina-tailwind-sidebar-demo/.tina/__generated__/types.ts +0 -520
  14. package/examples/tina-tailwind-sidebar-demo/.tina/schema.ts +0 -35
  15. package/examples/tina-tailwind-sidebar-demo/CHANGELOG.md +0 -95
  16. package/examples/tina-tailwind-sidebar-demo/README.md +0 -10
  17. package/examples/tina-tailwind-sidebar-demo/components/PageBlocks.tsx +0 -25
  18. package/examples/tina-tailwind-sidebar-demo/components/actions.js +0 -114
  19. package/examples/tina-tailwind-sidebar-demo/components/features.tsx +0 -171
  20. package/examples/tina-tailwind-sidebar-demo/components/footer.tsx +0 -247
  21. package/examples/tina-tailwind-sidebar-demo/components/hero.js +0 -156
  22. package/examples/tina-tailwind-sidebar-demo/components/icon.js +0 -264
  23. package/examples/tina-tailwind-sidebar-demo/components/modal.js +0 -79
  24. package/examples/tina-tailwind-sidebar-demo/components/nav.tsx +0 -121
  25. package/examples/tina-tailwind-sidebar-demo/components/section.js +0 -53
  26. package/examples/tina-tailwind-sidebar-demo/components/testimonial.tsx +0 -87
  27. package/examples/tina-tailwind-sidebar-demo/components/theme.tsx +0 -81
  28. package/examples/tina-tailwind-sidebar-demo/components/tina-wrapper.js +0 -85
  29. package/examples/tina-tailwind-sidebar-demo/content/data/homepage.json +0 -186
  30. package/examples/tina-tailwind-sidebar-demo/content/theme/NormalTheme.json +0 -5
  31. package/examples/tina-tailwind-sidebar-demo/graphql.config.js +0 -24
  32. package/examples/tina-tailwind-sidebar-demo/package.json +0 -41
  33. package/examples/tina-tailwind-sidebar-demo/pages/_app.js +0 -48
  34. package/examples/tina-tailwind-sidebar-demo/pages/admin.tsx +0 -26
  35. package/examples/tina-tailwind-sidebar-demo/pages/index.tsx +0 -186
  36. package/examples/tina-tailwind-sidebar-demo/postcss.config.js +0 -19
  37. package/examples/tina-tailwind-sidebar-demo/public/canal.jpg +0 -0
  38. package/examples/tina-tailwind-sidebar-demo/public/index.html +0 -42
  39. package/examples/tina-tailwind-sidebar-demo/styles.css +0 -20
  40. package/examples/tina-tailwind-sidebar-demo/tailwind.config.js +0 -83
  41. package/examples/tina-tailwind-sidebar-demo/tsconfig.json +0 -19
@@ -1,83 +0,0 @@
1
- /**
2
- Copyright 2021 Forestry.io Holdings, Inc.
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
- http://www.apache.org/licenses/LICENSE-2.0
7
- Unless required by applicable law or agreed to in writing, software
8
- distributed under the License is distributed on an "AS IS" BASIS,
9
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
- See the License for the specific language governing permissions and
11
- limitations under the License.
12
- */
13
-
14
- const chroma = require('chroma-js')
15
- const colors = require('tailwindcss/colors')
16
-
17
- module.exports = {
18
- purge: [],
19
- darkMode: 'class',
20
- theme: {
21
- colors: {
22
- transparent: 'transparent',
23
- current: 'currentColor',
24
- black: colors.black,
25
- white: colors.white,
26
- gray: colors.coolGray,
27
- blue: colors.blue,
28
- teal: colors.cyan,
29
- green: colors.emerald,
30
- red: colors.rose,
31
- purple: colors.purple,
32
- pink: colors.pink,
33
- yellow: colors.yellow,
34
- orange: colors.orange,
35
- },
36
- screens: {
37
- sm: '600px',
38
- md: '900px',
39
- lg: '1200px',
40
- xl: '1500px',
41
- '2xl': '1800px',
42
- },
43
- extend: {
44
- spacing: {
45
- 128: '32rem',
46
- },
47
- zIndex: {
48
- '-1': '-1',
49
- },
50
- },
51
- },
52
- variants: {
53
- extend: {},
54
- },
55
- plugins: [
56
- /* https://gist.github.com/Merott/d2a19b32db07565e94f10d13d11a8574 */
57
- function ({ addBase, theme }) {
58
- function extractColorVars(colorObj, colorGroup = '') {
59
- return Object.keys(colorObj).reduce((vars, colorKey) => {
60
- const value = colorObj[colorKey]
61
-
62
- if (value === 'transparent' || value === 'currentColor') return
63
-
64
- const newVars =
65
- typeof value === 'string'
66
- ? {
67
- [`--color${colorGroup}-${colorKey}`]: value,
68
- [`--color-rgb${colorGroup}-${colorKey}`]: chroma(value)
69
- .rgb()
70
- .toString(),
71
- }
72
- : extractColorVars(value, `-${colorKey}`)
73
-
74
- return { ...vars, ...newVars }
75
- }, {})
76
- }
77
-
78
- addBase({
79
- ':root': extractColorVars(theme('colors')),
80
- })
81
- },
82
- ],
83
- }
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "strict": false,
8
- "forceConsistentCasingInFileNames": true,
9
- "noEmit": true,
10
- "esModuleInterop": true,
11
- "module": "esnext",
12
- "moduleResolution": "node",
13
- "resolveJsonModule": true,
14
- "isolatedModules": true,
15
- "jsx": "preserve"
16
- },
17
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "components/features.ts"],
18
- "exclude": ["node_modules"]
19
- }