Skip to content

ajboni/txtdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TXTDIT

TXTDIT is a featurless themeable text editor.

Main features:

  • No text formatting
  • Multiple Themes
  • Import/export plain text file.
  • Autosave current document
  • No more features

SCREENSHOTS

Screenshot-2020-02-03-TXTdit Screenshot-2020-02-03-TXTdit-1

Screenshot-2020-02-03-TXTdit-2 Screenshot-2020-02-03-TXTdit-3

Screenshot-2020-02-03-TXTdit-5 txtdit

DEVELOPMENT

Install the dependencies...

cd svelte-app
npm install

...then start Rollup:

npm run dev

Navigate to localhost:5000. You should see your app running. Edit a component file in src, save it, and reload the page to see your changes.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

ADD A THEME

  1. Add theme source in src/theme/ (eg: newTheme.scss)
  2. At the bottom of the theme add import "app.scss";
  3. Include the theme name (filename) in theme-list.js
  4. To automatically generate css, add to main.js: import "./themes/newTheme.scss";
  5. run the project, your css will be added in the public/themes folder

If a new variable is added, you should add a default value in _defaults.scss otherwise it will throw error on themes not using it.