Giter Club home page Giter Club logo

panda-syntax-vscode's Introduction

Panda Logo

A Superminimal, dark Syntax Theme. This is the latest version of the Panda Syntax theme. It's a dark syntax theme crafted especially for Visual Studio Code [New Version], with subtle colors that are meant to be easy on the eyes.


Main ScreenShot

The font in the screenshot is Operator Mono. From $199, exclusively at H&Co. http://www.typography.com/blog/introducing-operator


⌨️ Installation

Preferences:

  1. Go to Extensions
  2. Search for Panda and install it.
  3. Go to Color Themes and choose Panda Syntax as the color theme or CMD + Shift + P and enter Command > color theme and choose Panda Syntax.

唥 Language support

Panda Syntax Theme Supported Packages language-* and optimized for many languages:

  • Markup: HTML, MarkDown(.md), jsdoc.
  • CSS: Sass, SCSS, LESS.
  • JavaScript: JS, ES6, JSX, CoffeeScript.
  • Regex.

📞 Recommended

Panda Created for Editors and Terminals. Panda Project.

Panda Ports


🐛 Issues and contributing

If you would like to create a new Issue or PR, please do so in:

  • This repo if it's about color changes, first read Color Semantics and Change themes files.

🐼 About Pandas

Pandas ScreenShot

  1. Sleep 12-14 hours per day
  2. Eat 12-14 hours per day
  3. Consume 10 to 18 kilos of raw bamboo per day
  4. Poop 10 to 18 kilos of processed bamboo per day.
  5. Panda sex is awkward. Naps are much more fun.

Picture & Contents from: https://dribbble.com/shots/2354579-Panda-Icon-Party.

panda-syntax-vscode's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

panda-syntax-vscode's Issues

Jade/Pug Syntax Highlighting in Vue Components

Summary

Panda Theme recently stopped highlighting pug HTML tags, or providing any distinction between the HTML tags and their inner text.

Language: Pug (vue template)
Raw File Contents:

<template lang="pug">
div 
  v-tooltip(top, right)
    v-btn(
      center, 
      dark, 
      fab, 
      flat, 
      small, 
      color="accent", 
      slot="activator",
      @click="createCategory"
    )
      v-icon add
    span Create New Category
  v-dialog(
    v-model="categoryFormVisible", 
    v-if="categoryFormVisible", 
    max-width="50%"
  )
    v-card 
      v-card-text
        new-category(
          @create="handleCategorySubmit", 
          v-if="categoryFormVisible", 
          :template="newCategory", 
          :categories="categories"
        )
</template>

<script>
// [...]
</script>

<style lang="scss">
</style>

Notice the differences in v-icon add and span Create New Category below.

Expected Highlighting: (Material theme)
image

Actual Highlighting: (Panda theme)
image

font ?

how to change font follow ?

Extremely low contrast in diff viewer for comment changes.

Summary

Looking at diffs using the VSCode diff editor shows really low contrast text to background especially with backgrounds.

Language: JavaScript (Possibly other languages that have comments syntax highlighting)

Just diff any two files with changes in comments and you can see the problem. Here is a screenshot.

test_diff_contrast

I love Panda syntax, this is the only thing that is really annoying.

Adopt semantic highlighting

Since 1.43, VSCode themes can take advantage of semantic highlighting.

Every theme controls whether semantic tokens are enabled. So far, only built-in themes have it enabled and I filed this issue to ask you to opt-in for the Panda theme as well.

Adoption is easy and there are new cool styling possibilities.

To turn on semantic highlighting for a theme, all you have to do is put
"semanticHighlighting": true
in the theme's definition file.

There's a good chance that no further change to the theme is needed (thanks to a default mapping from semantic tokens to TextMate scopes (if not, I'd be interested to know, so I can improve the defaults further)).

But, more interestingly, themes can tune and go wild by defining new styling rules against the semantic tokens:

"semanticTokenColors": {
    "variable.readonly": "#ff0000", 
    "parameter": { "fontStyle": "underline" },
    "*.declaration:java": { "fontStyle": "bold" }
} 

Check out our Semantic Highlighting Wiki and the Semantic Highlighting Guide for more details and feel free to ping me in this issue if I can help.

Thanks for the great work and looking forward to semantic highlighting in your theme.

Syntax highlight in jsx

first of all, I personally really like this theme, but the only problem I'm having is that in react javascript, I want to get html to be the same highlight as in html, that would be really really cool, because the red colour for html tags are super awesome.

here is the screenshot of what i'm having now.

screen shot 2018-01-29 at 5 23 32 pm

turn that html tags in jsx into this

screen shot 2018-01-29 at 5 27 49 pm

High contract areas

These areas feel a bit too high contrast and make it hard to read text when they are used as a background color.

Perhaps a darker font when the status bar is in debug mode?
image

Again darker fonts may improve legibility here.
image

Whitespace highlights blend in with background

Summary

When highlighting in VS Code, there is behavior for 'Editor: Render Whitespace' which can differentiate tabs (displayed as an arrow ->) and spaces (displayed as a dot). In Panda Syntax, the whitespace character is virtually invisible as it blends in with the background. Screenshots are at the bottom.

I'm happy to make changes to get this working, although I suspect there will be opinions on the color choice?

Language: JavaScript, Go, Markdown

Raw File Contents:
Any sample code should do here but this is a JS snippet from the included screenshot.

const balancedParens = (input) => {
  const openParens = new Set(['(', '{', '[']);
  const parenMatcher = {
    ')': '(',
    ']': '[',
    '}': '{',
  };

  // make a stack to track open and closed parens
  const stack = [];
}

JavaScript screenshot (spaces appear as dots):
image

Golang screenshot (tabs appear as arrows):
image


Expected Behavior
image

下划线能不能不要波浪的 换成简单点的

Issue Type: Feature Request

页面太多波浪线感觉很乱

Extension version: 1.3.0
VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T17:39:53.251Z)
OS version: Darwin x64 19.6.0

Add more italic

This theme uses Operator Mono for demonstration but doesn't support italic font, so please, add more italic.

For example:
import, from, JSX propNames, async/await,...

Any plans to support the Operator Mono font (italics) in VSCode?

Summary

I love the Panda theme but it does not seem to fully support the Operator Mono font in VSCode.

I've taken 3 screenshots for different themes to show the differences between them and Panda.
As you can see below, this and console are not in italics.
Also, the attributes in react components are not in italics either.

One Dark

comments and this are rendered correctly but not console

one dark

Dracula

this and console are rendered correctly but not comments
dracula

Panda

comments are rendered correctly but not this nor console
panda

Language: JavaScript React

Raw File Contents:

            // clear timer for user account
            if (this.timer) {
                clearInterval(this.timer)
            }
            console.log('tada')

My settings.json

"editor.fontLigatures": true,
"editor.fontFamily": "Operator Mono, Monaco, Menlo, 'Courier New', monospace",
"editor.renderWhitespace": "boundary",
"editor.autoIndent": true,

Releasing a version of Panda that supports Mono Operator would be awesome 💯 👍

ANSI Bright Black Against Integrated Terminal Background

The ansiBrightBlack color in the integrated terminal is too dark against the background color:
original

Recommendation is to update the ansiBrightBlack color to a dark gray. Something like #696969. It constrasts better with the background:

recommended

React component default props arg breaking some highlighting

Summary

As shown in screenshot, having an empty array default value for React component props is messing up the rest of the highlighting

screenshot 2017-09-09 12 13 30

screenshot 2017-09-09 12 13 24

Language: javascript
Raw File Contents:

import PropTypes from 'prop-types';
import React from 'react';
import Markdown from 'react-remarkable';
import { Helmet } from 'react-helmet';

import DocMeta from 'components/DocMeta';
import Panel from 'components/Panel';
import Spinner from 'components/Spinner';
import Container from 'components/Container';
import Row from 'components/Row';
import Column from 'components/Column';
import CardsBoard from 'components/CardsBoard';
import Comments from 'modules/comments/components/Comments';
import getCardsByBoard from 'utils/getCardsByBoard';
import DeckPageHeader from './DeckPageHeader';

const Commander = ({ src, alt }) => (
  <div>
    <h3>Commander</h3>
    <img src={src} alt={alt} />
  </div>
);

const DeckPage = ({
  id,
  name,
  format,
  cards,
  user_id,
  tags,
  featured_card,
  colors = [],
  created_at,
  updated_at,
  stars_count,
  has_starred,
  can_update,
  can_delete,
  loading,
  description,
  isLoggedIn
}) => {
  if (loading) {
    return <Spinner size="large" centered />;
  }

  const featuredCardSrc = featured_card.url;
  const featuredCardName = featured_card.name;

  const mainboard = getCardsByBoard(cards, 'mainboard');
  const sideboard = getCardsByBoard(cards, 'sideboard');

  const title = 'MTG Deck: ' + name + '(' + format + ')';

  return (
    <article>
      <Helmet>
        <title>{title}</title>
        <meta property="og:title" content={title} />
        <meta property="og:description" content={description} />
        <meta property="og:type" content="fateseal:deck" />
        <meta
          property="og:url"
          content={'http://www.fateseal.com/decks/' + id}
        />
        <meta property="og:url" content={featuredCardSrc} />
      </Helmet>
      <DeckPageHeader
        id={id}
        name={name}
        format={format}
        starsCount={stars_count}
        username={user_id.username}
        createdAt={created_at}
        updatedAt={updated_at}
        featuredCardName={featuredCardName}
        featuredCardSrc={featuredCardSrc}
        hasStarred={has_starred}
        canUpdate={can_update}
        canDelete={can_delete}
        tags={tags}
        colors={colors}
        isLoggedIn={isLoggedIn}
      />
      <Container>
        <Row>
          <Column md={8}>
            <Panel>
              <CardsBoard cards={mainboard} title="Mainboard" hasLabels />
            </Panel>
          </Column>
          <Column md={4}>
            <Panel>
              {format !== 'Commander' ? (
                <CardsBoard cards={sideboard} title="Sideboard" />
              ) : (
                <Commander src={featuredCardSrc} alt={featuredCardName} />
              )}
            </Panel>
          </Column>
        </Row>
        <Row>
          <Column md={8}>
            {description && (
              <Panel>
                <h3>Description</h3>
                <Markdown>{description}</Markdown>
              </Panel>
            )}
            <Panel>
              <Comments modelId={id} />
            </Panel>
          </Column>
        </Row>
      </Container>
    </article>
  );
};

DeckPage.propTypes = {
  id: PropTypes.string.isRequired,
  name: PropTypes.string.isRequired,
  format: PropTypes.string.isRequired,
  description: PropTypes.string.isRequired,
  tags: PropTypes.array.isRequired,
  featured_card: PropTypes.object.isRequired,
  cards: PropTypes.array.isRequired,
  can_update: PropTypes.bool,
  has_starred: PropTypes.bool,
  loading: PropTypes.bool.isRequired,
  isLoggedIn: PropTypes.bool.isRequired
};

DeckPage.defaultProps = {
  id: '',
  cards: [],
  name: '',
  description: '',
  tags: [],
  featured_card: {},
  user_id: {},
  loading: false
};

export default DeckPage;


some bugs with latest update

hello, thank you for bringing full theme support to panda! it's my favorite theme for VSCode. However, there seems to be a lot that has changed and the syntax highlighting seems less organized and has a few bugs. I'm a little confused by the YAML theme files, but maybe I could work on a PR. Here's what I've noticed.

  1. react JSX components no longer have colored names in markup, the red is gone now and it (to me) is less legible (screenshot is of previous version)
    screenshot from 2017-08-24 15-30-23

  2. these weird error underlines
    screenshot from 2017-08-24 15-22-10

  3. JS class methods are not properly colored (they are white now, not blue)
    screenshot from 2017-08-24 15-38-28

  4. class decorators are no longer colored (see above screenshot)

  5. import..from, and export keywords are no longer colored (see above again)

Again I would be happy to help with a PR if you could show me where to get started. thanks.

Typescript support

Would you consider adding support for Typescript specific syntax like type declarations?

Feature Request: Turning down the brightness of white text.

Summary

Language: .mdx
Raw File Contents:
image

First of all, let me express my love to Panda syntax, thanks for making such a beautiful themed extension for VSCode, been a fan for a a long time, tried other syntaxes as well. By far, this is undoubtably the one I love the most.

if there is one thing I'd like to change to make it even better is turning down the brightness of white text. I found myself, if looking at the white text for a little while, it hurts my eyes. Especially when I am in a darker environment, it hurts even more.

Rendering lags

Type: Bug

When I have your extension enabled, it gives me weird rendering issues. Somehow, when I scroll the rendering starts too lag and it doesn't look as usual.

Extension version: 1.3.0
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:02.548Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info
Item Value
CPUs AMD Ryzen 5 3600 6-Core Processor (12 x 4200)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 31.92GB (12.27GB free)
Process Argv --folder-uri file:///g%3A/Documents/Programming/Python/tradingview-strategy-optimizer --crash-reporter-id ffaf22b8-6738-4c34-aa02-24d681ffb6f9
Screen Reader no
VM 13%

No color highlight for tags in xml files

Since the latest update tags in xml file don't have a color, I think they should look similar to html files.

screen shot 2017-08-30 at 09 59 56

Language: XML, HTML
Raw File Contents:

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.0">
  <file source-language="en" datatype="plaintext" original="messages" date="2014-09-04T18:16:21Z" product-name="razor">
    <header />
    <body>
      <trans-unit id="dceTitle">
        <source>Socialbar</source>
      </trans-unit>
      <trans-unit id="dceDescription">
        <source>Element with social icons</source>
      </trans-unit>
      <trans-unit id="title">
        <source>Title</source>
      </trans-unit>
    </body>
  </file>
</xliff>

Broken in latest VSCode February release

Summary

Right after upgrading to latest 1.43.0 Visual Studio (February 2020 release), JavasScript functions and properties have lost their original colors.

  • Properties in objects are now the same colors as functions (used to white, are now blue), which makes them hard to distinguish and read.
  • Global constructors such as Number or String, used to be yellow-ish - they are now white.

image

  • Exported members used to be white, are now blue.

image

  • require statements are now white (used to be blue).

image

Language: JavaScript
Raw File Contents:

/**
 * @function
 */
const toUserFormField = applySpec({
  id: prop('id'),
  name: prop('name'),
  icon: prop('icon'),
  type: prop('type'),
  placeholder: prop('placeholder'),
  required: compose(boolify, prop('required')),
  unique: compose(boolify, prop('unique')),
  multiple: compose(boolify, prop('multiple')),
  values: compose(sortBy(ascend(prop('ordinal')), map(toAttributeValue), prop('values'))),
  attribute: prop('attribute'),
  colGroup: prop('col_group'),
  helpText: prop('help_text'),
  validations: compose(parseValidationRules, propOr('', 'validation_rules')),
  ordinal: compose(Number, prop('ordinal'))
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.