├── .github
└── FUNDING.yml
├── LICENSE
├── README.md
├── index.html
└── potion.css
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | custom: ['https://www.buymeacoffee.com/mvoloskov']
2 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Boost Software License - Version 1.0 - August 17th, 2003
2 |
3 | Permission is hereby granted, free of charge, to any person or organization
4 | obtaining a copy of the software and accompanying documentation covered by
5 | this license (the "Software") to use, reproduce, display, distribute,
6 | execute, and transmit the Software, and to prepare derivative works of the
7 | Software, and to permit third-parties to whom the Software is furnished to
8 | do so, all subject to the following:
9 |
10 | The copyright notices in the Software and this entire statement, including
11 | the above license grant, this restriction and the following disclaimer,
12 | must be included in all copies of the Software, in whole or in part, and
13 | all derivative works of the Software, unless such copies or derivative
14 | works are solely in the form of machine-executable object code generated by
15 | a source language processor.
16 |
17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 | FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
20 | SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
21 | FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
22 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23 | DEALINGS IN THE SOFTWARE.
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 🤓 Potion
2 | Make websites look like a certain popular note taking app that may or may not rhyme with the name of this repo.
3 |
4 | ## What does it do?
5 |
6 | If you just have your HTML file and nothing else, you can put one line of code into `
`, and it will instantly look like it was made in that note-taking app.
7 |
8 | ## Why?
9 |
10 | I've seen [Fruition](https://fruitionsite.com) and really like it. I find that design really simple and attractive for things like demo pages, READMEs, documentation and other such things. However, the original thing loads extremely slowly and it's inaccessible because it was never designed to be used in such a way.
11 |
12 | This is where Potion steps in.
13 |
14 | ## Advantages over the original
15 |
16 | - 👌 No need to go through all that complicated Cloudflare settings as with Fruition
17 | - ⚡️ It works much faster because it's just a single small CSS file
18 | - 😈 No trackers, no JavaScript
19 | - 🪄 Accessible by default
20 | - 🌱 Works much better on narrower screens than the original
21 |
22 | ## Usage
23 |
24 | ```HTML
25 |
26 | ```
27 |
28 | Put this into `head` of a plain HTML file. Done.
29 |
30 | ## Caveats
31 |
32 | - If you want responsive tables, you should wrap your `table` in `
`. It'll make it scroll horizontally on narrower screens.
33 | - For best results, put all your content into `` or ``.
34 |
35 | ## Supported elements
36 |
37 | - Basic typography: paragraphs, headings (h1–h3), `strong`, `em`, `i`, `b`, `del`
38 | - Blockquotes
39 | - Links and images
40 | - Tables: `table`, `tr`, `td`, `th`, `thead`, `caption`, `tbody`
41 | - Lists: `ul`, `ol`, `li`
42 | - Code: inline code with `code`, blocks of code with `pre`
43 |
44 | ## Classes and special components
45 |
46 | ### Header
47 |
48 | The `` on top of the `` is special. It allows you to define page title, page icon and top image:
49 |
50 | ```HTML
51 |
52 |
53 |
54 |
55 |
56 |
57 |
🥳
58 |
59 |
60 |
Potion
61 |
62 | ...
63 |
64 | ```
65 |
66 | ### Responsive tables
67 |
68 | You should wrap your `table` in `
` to make it scroll horizontally on narrower screens:
69 |
70 | ```HTML
71 |
72 |
73 | ...
74 |
75 |
76 | ```
77 |
78 | ### Colors
79 |
80 | Original colors are supported:
81 |
82 | - Gray
83 | - Brown
84 | - Orange
85 | - Yellow
86 | - Green
87 | - Blue
88 | - Purple
89 | - Pink
90 | - Red
91 |
92 | You can color everything from spans and paragraphs to table cells. Colors are available for both the backgrounds and the text.
93 |
94 | ```HTML
95 |
96 |
Yellow text
97 |
Standard text on purple background
98 |
Blue text on red background
99 |
100 | ```
101 |
102 | You may always refer to the demo page HTML as a guide of how to use Potion. It's really easy.
103 |
104 | Enjoy!
105 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 | Potion
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
🥳
18 |
Potion
19 |
20 |
21 |
This is a test page filled with common HTML elements to be used to provide visual feedback whilst building CSS
22 | systems and frameworks.
23 |
Text
24 |
Heading 1
25 |
Heading 2
26 |
Heading 3
27 |
28 | A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
29 |
30 |
31 | A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
32 |
33 |
34 | A paragraph (from the Greek paragraphos, “to write beside” or “written beside”) is a self-contained unit of a discourse in writing dealing with a particular point or idea. A paragraph consists of one or more sentences. Though not required by the syntax of any language, paragraphs are usually an expected part of formal writing, used to organize longer prose.
35 |
36 |
37 | A block quotation (also known as a long quotation or extract) is a quotation in a written document, that is set off from the main text as a paragraph, or block of text. It is typically distinguished visually using indentation and a different typeface or smaller size quotation. It may or may not include a citation, usually placed at the bottom.
38 |