```coffeescript
fsUtils = require 'fs-utils'
Theme = require 'theme'
CSON = require 'cson'

# Internal: Represents a theme that Atom can use.
module.exports =
class AtomTheme extends Theme

  # Internal: Given a path, this loads it as a stylesheet.
  #
  # stylesheetPath - A {String} to a stylesheet
  loadStylesheet: (stylesheetPath)->
    @stylesheets[stylesheetPath] = window.loadStylesheet(stylesheetPath)

  # Internal: Loads the stylesheets found in a `package.cson` file.
  load: ->
    if fsUtils.extension(@path) in ['.css', '.less']
      @loadStylesheet(@path)
    else
      metadataPath = fsUtils.resolveExtension(fsUtils.join(@path, 'package'), ['cson', 'json'])
      if fsUtils.isFile(metadataPath)
        stylesheetNames = CSON.readObject(metadataPath)?.stylesheets
        if stylesheetNames
          for name in stylesheetNames
            filename = fsUtils.resolveExtension(fsUtils.join(@path, name), ['.css', '.less', ''])
            @loadStylesheet(filename)
      else
        @loadStylesheet(stylesheetPath) for stylesheetPath in fsUtils.list(@path, ['.css', '.less'])

    super
```

Use fsUtils.readObject() to read theme metadata
user
```coffeescript
fsUtils = require 'fs-utils'
Theme = require 'theme'

# Internal: Represents a theme that Atom can use.
module.exports =
class AtomTheme extends Theme

  # Internal: Given a path, this loads it as a stylesheet.
  #
  # stylesheetPath - A {String} to a stylesheet
  loadStylesheet: (stylesheetPath)->
    @stylesheets[stylesheetPath] = window.loadStylesheet(stylesheetPath)

  # Internal: Loads the stylesheets found in a `package.cson` file.
  load: ->
    if fsUtils.extension(@path) in ['.css', '.less']
      @loadStylesheet(@path)
    else
      metadataPath = fsUtils.resolveExtension(fsUtils.join(@path, 'package'), ['cson', 'json'])
      if fsUtils.isFile(metadataPath)
        stylesheetNames = fsUtils.readObject(metadataPath)?.stylesheets
        if stylesheetNames
          for name in stylesheetNames
            filename = fsUtils.resolveExtension(fsUtils.join(@path, name), ['.css', '.less', ''])
            @loadStylesheet(filename)
      else
        @loadStylesheet(stylesheetPath) for stylesheetPath in fsUtils.list(@path, ['.css', '.less'])

    super
```
assistant