-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
393 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# v0.1.0 | ||
## {{ "now"|date("m/d/Y") }} | ||
|
||
1. [](#new) | ||
* ChangeLog started... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) {{ "now"|date("Y") }} {{ component.author.name }} | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# {{ component.name|titleize }} Theme | ||
|
||
The **{{ component.name|titleize }}** Theme is for [Grav CMS](http://github.com/getgrav/grav). This README.md file should be modified to describe the features, installation, configuration, and general usage of this theme. | ||
|
||
## Description | ||
|
||
{{ component.description }} | ||
|
||
# Instructions | ||
|
||
Run | ||
|
||
`npm install` to setup tailwind and required plugins | ||
|
||
How to build tailwind: | ||
|
||
Development: | ||
|
||
`npm run build` for single time compiling | ||
|
||
`npm run watch` for constant development | ||
|
||
Production: | ||
|
||
`npm run prod` for production compiling. **Don't forget to turn on production mode in the theme config**# Instructions | ||
|
||
Run | ||
|
||
`npm install` to setup tailwind and required plugins | ||
|
||
How to build tailwind: | ||
|
||
Development: | ||
|
||
`npm run build` for single time compiling | ||
|
||
`npm run watch` for constant development | ||
|
||
Production: | ||
|
||
`npm run prod` for production compiling. **Don't forget to turn on production mode in the theme config** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% set githubid = component.author.githubid ?: component.author.name|hyphenize -%} | ||
name: {{ component.name|titleize }} | ||
slug: {{ component.name|hyphenize }} | ||
type: theme | ||
version: 0.1.0 | ||
description: {{ component.description }} | ||
icon: rebel | ||
author: | ||
name: {{ component.author.name }} | ||
email: {{ component.author.email }} | ||
homepage: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }} | ||
demo: http://demo.yoursite.com | ||
keywords: grav, theme, etc | ||
bugs: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }}/issues | ||
readme: https://github.com/{{ githubid }}/grav-theme-{{ component.name|hyphenize }}/blob/develop/README.md | ||
license: MIT | ||
|
||
dependencies: | ||
- { name: grav, version: '>=1.6.0' } | ||
|
||
form: | ||
validation: loose | ||
fields: | ||
dropdown.enabled: | ||
type: toggle | ||
label: Dropdown in Menu | ||
highlight: 1 | ||
default: 1 | ||
options: | ||
1: PLUGIN_ADMIN.ENABLED | ||
0: PLUGIN_ADMIN.DISABLED | ||
validate: | ||
type: bool | ||
production: | ||
type: toggle | ||
label: Production Mode | ||
highlight: 1 | ||
default: 1 | ||
options: | ||
1: PLUGIN_ADMIN.ENABLED | ||
0: PLUGIN_ADMIN.DISABLED | ||
validate: | ||
type: bool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/*@import 'yourcssfile.css';*/ | ||
|
||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
THEME_{{ component.name|hyphenize|replace({'-': '_'})|upper }}: | ||
ERROR: 'Error!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "{{ component.name }}", | ||
"repository": "", | ||
"private": true, | ||
"version": "0.1.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "postcss css/site.css -o dist/css/site.css --verbose", | ||
"watch": "postcss css/site.css -o dist/css/site.css --watch --verbose", | ||
"prod" : "postcss css/site.css -o dist/css/site.min.css --env production --verbose" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"alpinejs": "^2.8.2", | ||
"tailwindcss": "^2.1.2", | ||
"@tailwindcss/forms": "^0.3.2", | ||
"@tailwindcss/typography": "^0.4.0", | ||
"tailwindcss-debug-screens": "^2.0.0", | ||
"autoprefixer": "^10.2.5", | ||
"precss": "^4.0.0", | ||
"cssnano": "^4.1.11", | ||
"postcss": "^8.2.9", | ||
"postcss-cli": "^8.3.1", | ||
"postcss-import": "^14.0.1", | ||
"postcss-nested": "^5.0.5", | ||
"postcss-hexrgba": "^2.0.1", | ||
"postcss-color-function": "^4.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
plugins: { | ||
'postcss-import': {}, | ||
'precss': {}, | ||
'tailwindcss': {}, | ||
'postcss-nested': {}, | ||
'autoprefixer': {}, | ||
...process.env.NODE_ENV === 'production' | ||
? {'cssnano': {}} : {} | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
const { colors } = require('tailwindcss/defaultTheme'); | ||
|
||
module.exports = { | ||
purge: [ | ||
'../../config/**/*.yaml', | ||
'../../pages/**/*.md', | ||
'./blueprints/**/*.yaml', | ||
'./js/**/*.js', | ||
'./templates/**/*.twig', | ||
'./{{ component.name|hyphenize }}.yaml', | ||
'./{{ component.name|hyphenize }}.php' | ||
], | ||
darkMode: 'class', //false or 'media' or 'class' | ||
theme: { | ||
extend: { | ||
screens: { | ||
sm: '640px', | ||
md: '768px', | ||
lg: '1024px', | ||
xl: '1280px', | ||
'2xl': '1536px' | ||
} | ||
}, | ||
colors: { | ||
'primary': { | ||
'lighter': colors.yellow['300'], | ||
DEFAULT: colors.yellow['400'], | ||
'darker' : colors.yellow['500'], | ||
}, | ||
black: colors.black, | ||
white: colors.white, | ||
red: colors.red, | ||
green: colors.green, | ||
blue: colors.blue, | ||
orange: colors.orange, | ||
indigo: colors.indigo, | ||
transparent: 'transparent', | ||
'inherit': 'inherit', | ||
}, | ||
typography: (theme) => ({ | ||
DEFAULT: { | ||
css: { | ||
color: 'inherit', | ||
lineHeight: 'inherit', | ||
maxWidth: 'inherit', | ||
a: { | ||
transition: 'all 500ms', | ||
color: theme('colors.primary.DEFAULT'), | ||
'&:hover': { | ||
color: theme('colors.primary.darker') | ||
}, | ||
textDecoration: 'none' | ||
}, | ||
strong: { | ||
color: 'inherit' | ||
}, | ||
} | ||
} | ||
}), | ||
}, | ||
variants: { | ||
extend: {}, | ||
}, | ||
plugins: [ | ||
require('@tailwindcss/typography'), | ||
require('@tailwindcss/forms'), | ||
require('tailwindcss-debug-screens'), | ||
], | ||
important: false, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends 'partials/base.html.twig' %} | ||
|
||
{% block content %} | ||
{{ page.content|raw }} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends 'partials/base.html.twig' %} | ||
|
||
{% block content %} | ||
<div class="prose"> | ||
<h1>{{ 'THEME_TAILWIND.ERROR'|t }}</h1> | ||
{{ page.content|raw }} | ||
</div> | ||
{% endblock %} |
Oops, something went wrong.